From 200b423412163447c9d3e7e14e6e65172ef14be6 Mon Sep 17 00:00:00 2001 From: "Albert (AJ) St. Aubin" Date: Wed, 30 Sep 2020 19:05:33 -0400 Subject: [PATCH] Added search to User Demographics Admin page --- openedx/core/djangoapps/demographics/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/demographics/admin.py b/openedx/core/djangoapps/demographics/admin.py index 0f89139ce9..5085e0c04a 100644 --- a/openedx/core/djangoapps/demographics/admin.py +++ b/openedx/core/djangoapps/demographics/admin.py @@ -11,8 +11,9 @@ class UserDemographicsAdmin(admin.ModelAdmin): """ Admin for UserDemographics Model """ - list_display = ('user', 'show_call_to_action') + list_display = ('id', 'user', 'show_call_to_action') readonly_fields = ('user',) + search_fields = ('id', 'user__username') class Meta(object): model = UserDemographics