|
|
@@ -9,7 +9,7 @@ from mch.models import ConsumeInfoSubmitLogInfo
|
9
|
9
|
|
10
|
10
|
|
11
|
11
|
class UserInfoAdmin(ChangeOnlyModelAdmin, admin.ModelAdmin):
|
12
|
|
- list_display = ('user_id', 'username', 'openid', 'unionid', 'name', 'sex', 'nickname', 'phone', 'location', 'balance', 'user_status', 'status', 'created_at', 'updated_at')
|
|
12
|
+ list_display = ('user_id', 'username', 'openid', 'unionid', 'name', 'sex', 'nickname', 'phone', 'location', 'balance', 'user_status', 'test_user', 'status', 'created_at', 'updated_at')
|
13
|
13
|
list_filter = ('test_user', 'sex', 'user_status', 'status')
|
14
|
14
|
readonly_fields = ('user_id', )
|
15
|
15
|
search_fields = ('user_id', 'name', 'phone', 'location')
|
|
|
@@ -28,7 +28,7 @@ class FranchiserInfoAdmin(admin.ModelAdmin):
|
28
|
28
|
|
29
|
29
|
|
30
|
30
|
class SaleclerkInfoAdmin(admin.ModelAdmin):
|
31
|
|
- list_display = ('franchiser_id', 'clerk_id', 'clerk_name', 'clerk_sex', 'clerk_phone', 'user_status', 'status', 'created_at', 'updated_at')
|
|
31
|
+ list_display = ('franchiser_id', 'clerk_id', 'clerk_name', 'clerk_sex', 'clerk_phone', 'user_status', 'test_user', 'status', 'created_at', 'updated_at')
|
32
|
32
|
list_filter = ('test_user', 'user_status', 'status')
|
33
|
33
|
readonly_fields = ('franchiser_id', )
|
34
|
34
|
search_fields = ('franchiser_id', 'clerk_id', 'clerk_name', 'clerk_phone')
|