From f8e7a5af6c427aacb3ca9e662b1c0ea454dd1b8d Mon Sep 17 00:00:00 2001 From: abhishek12071 <92369178+abhishek12071@users.noreply.github.com> Date: Sat, 22 Apr 2023 23:29:49 +0530 Subject: [PATCH] Update utils.py --- FusionIIIT/applications/filetracking/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FusionIIIT/applications/filetracking/utils.py b/FusionIIIT/applications/filetracking/utils.py index 5ebd27374..9fd0fc770 100644 --- a/FusionIIIT/applications/filetracking/utils.py +++ b/FusionIIIT/applications/filetracking/utils.py @@ -4,4 +4,8 @@ def get_designation(userid): user_designation=HoldsDesignation.objects.select_related('user','working','designation').filter(user=userid) - return user_designation \ No newline at end of file + return user_designation + +def get_all_designation(): + user_designation=HoldsDesignation.objects.select_related('user','working','designation').all() + return user_designation