@@ -11,7 +11,7 @@ class UserInfoAdmin(ChangeOnlyModelAdmin, admin.ModelAdmin): |
||
11 | 11 |
list_display = ('user_id', 'username', 'unionid', 'openid', 'openid_miniapp', 'name', 'sex', 'nickname', 'phone', 'location', 'balance', 'user_status', 'test_user', 'status', 'created_at', 'updated_at') |
12 | 12 |
list_filter = ('test_user', 'sex', 'user_status', 'status') |
13 | 13 |
readonly_fields = ('user_id', ) |
14 |
- search_fields = ('user_id', 'name', 'phone', 'location') |
|
14 |
+ search_fields = ('user_id', 'username', 'unionid', 'openid', 'openid_miniapp', 'name', 'phone', 'location') |
|
15 | 15 |
|
16 | 16 |
def save_model(self, request, obj, form, change): |
17 | 17 |
obj.save() |