OperatorInfoAdmin

Kimi.Huang преди 6 години
родител
ревизия
1ceee8609b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      mch/admin.py

+ 2 - 2
mch/admin.py

@@ -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)