Commit d90c1a28 by Ahsan Ulhaq

Merge pull request #11560 from edx/ahsan/ECOM-2831-GeneratedCertificates-admin-broken

set show_full_result_count false
parents 21aa7edd 88df4564
......@@ -151,6 +151,7 @@ class UserProfileAdmin(admin.ModelAdmin):
""" Admin interface for UserProfile model. """
list_display = ('user', 'name',)
raw_id_fields = ('user',)
show_full_result_count = False
search_fields = ('user__username', 'user__first_name', 'user__last_name', 'user__email', 'name',)
def get_readonly_fields(self, request, obj=None):
......
......@@ -54,6 +54,7 @@ class GeneratedCertificateAdmin(admin.ModelAdmin):
Django admin customizations for GeneratedCertificate model
"""
raw_id_fields = ('user',)
show_full_result_count = False
search_fields = ('course_id', 'user__username')
list_display = ('id', 'course_id', 'mode', 'user')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment