fix permisions

This commit is contained in:
2026-09-14 14:09:37 +03:00
parent f46e0d90ba
commit f0a23caa7b
6 changed files with 241 additions and 9 deletions
+5 -1
View File
@@ -208,7 +208,10 @@ class EmployeeAdmin(ModelAdmin):
'user_location_type', 'user_pharmacy', 'department_display', 'post',
'is_active', 'twofa_status', 'hire_date'
]
list_filter = ['groups', 'is_active', 'is_staff', 'user_location_type', 'department', 'totp_enabled']
list_filter = [
'groups', 'is_active', 'is_staff', 'user_location_type',
'department', 'totp_enabled', 'it_work_channel',
]
search_fields = ['username', 'email', 'last_name', 'first_name', 'middle_name']
list_select_related = ['user_pharmacy', 'department', 'post']
readonly_fields = ('photo_preview',)
@@ -245,6 +248,7 @@ class EmployeeAdmin(ModelAdmin):
'user_location_type', 'user_organization',
'user_pharmacy', 'user_location',
'department', 'post', 'manager',
'it_work_channel',
),
'classes': ('tab',),
}),