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