Skip to content

Commit

Permalink
improved edly multi access admin (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyalfarman committed Nov 21, 2023
1 parent 7c25cf8 commit bc816da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion openedx/features/edly/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ class EdlyMultisiteAccessAdmin(admin.ModelAdmin):
"""
Admin interface for the "EdlyMultiSiteAccess" object.
"""
list_display = ["user", "sub_org"]
list_display = ["user", "user_email", "sub_org"]
list_filter = ["sub_org__name"]
search_fields = ["user__username", "user__email", "sub_org__name"]
autocomplete_fields = ["user", "sub_org"]

def user_email(self, obj):
return obj.user.email


admin.site.register(StudentCourseProgress, StudentCourseProgressAdmin)
Expand Down

0 comments on commit bc816da

Please sign in to comment.