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)