|
|
@@ -34,9 +34,9 @@ class AdministratorInfoAdmin(admin.ModelAdmin):
|
34
|
34
|
|
35
|
35
|
|
36
|
36
|
class OperatorInfoAdmin(admin.ModelAdmin):
|
37
|
|
- list_display = ('operator_id', 'phone', 'password', 'encryption', 'name', 'brand_id', 'brand_name', 'brand_domain', 'user_status', 'status', 'created_at', 'updated_at')
|
|
37
|
+ list_display = ('operator_id', 'phone', 'name', 'brand_id', 'brand_name', 'brand_domain', 'user_status', 'status', 'created_at', 'updated_at')
|
38
|
38
|
list_filter = ('user_status', 'status', 'brand_name')
|
39
|
|
- readonly_fields = ('brand_domain', 'encryption', 'brand_name')
|
|
39
|
+ readonly_fields = ('encryption', 'brand_name')
|
40
|
40
|
|
41
|
41
|
def save_model(self, request, obj, form, change):
|
42
|
42
|
obj.phone = strip(obj.phone)
|