From 6ca4da8a6045d209dc71f19e7f07943bd4a3dc71 Mon Sep 17 00:00:00 2001 From: "daniyal.farman" Date: Tue, 21 Nov 2023 12:10:41 +0500 Subject: [PATCH] improved edly multi access admin --- openedx/features/edly/admin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openedx/features/edly/admin.py b/openedx/features/edly/admin.py index 1d7f490d9ce1..6f2fef7e15a1 100644 --- a/openedx/features/edly/admin.py +++ b/openedx/features/edly/admin.py @@ -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)