@@ -8,8 +8,8 @@ from mch.models import ConsumeInfoSubmitLogInfo |
||
8 | 8 |
|
9 | 9 |
|
10 | 10 |
class UserInfoAdmin(ChangeOnlyModelAdmin, admin.ModelAdmin): |
11 |
- list_display = ('user_id', 'unionid', 'openid', 'nickname', 'phone', 'location', 'balance', 'user_status', 'test_user', 'status', 'created_at', 'updated_at') |
|
12 |
- list_filter = ('test_user', 'sex', 'user_status', 'status') |
|
11 |
+ list_display = ('brand_id', 'user_id', 'unionid', 'openid', 'nickname', 'phone', 'location', 'balance', 'user_status', 'test_user', 'status', 'created_at', 'updated_at') |
|
12 |
+ list_filter = ('brand_id', 'test_user', 'sex', 'user_status', 'status') |
|
13 | 13 |
readonly_fields = ('user_id', ) |
14 | 14 |
search_fields = ('user_id', 'username', 'unionid', 'openid', 'openid_miniapp', 'nickname', 'name', 'phone', 'location') |
15 | 15 |
|
@@ -7,10 +7,10 @@ from integral.models import SaleclerkIntegralIncomeExpensesInfo, SaleclerkSubmit |
||
7 | 7 |
|
8 | 8 |
|
9 | 9 |
class SaleclerkIntegralIncomeExpensesInfoAdmin(ReadOnlyModelAdmin, admin.ModelAdmin): |
10 |
- list_display = ('clerk_id', 'type', 'code', 'integral', 'left_integral', 'remark', 'test_user', 'status', 'created_at', 'updated_at') |
|
11 |
- list_filter = ('test_user', 'type', 'status') |
|
10 |
+ list_display = ('brand_id', 'clerk_id', 'type', 'code', 'integral', 'left_integral', 'remark', 'test_user', 'status', 'created_at', 'updated_at') |
|
11 |
+ list_filter = ('brand_id', 'test_user', 'type', 'status') |
|
12 | 12 |
readonly_fields = ('clerk_id', 'type', 'code', 'integral', 'left_integral') |
13 |
- search_fields = ('code', 'remark') |
|
13 |
+ search_fields = ('clerk_id', 'code', 'remark') |
|
14 | 14 |
|
15 | 15 |
|
16 | 16 |
class SaleclerkSubmitLogInfoAdmin(ReadOnlyModelAdmin, admin.ModelAdmin): |