fix permisions
This commit is contained in:
@@ -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',),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user