From 31fca5f1f829dac5de81ea22b02cf6ac5ce796ea Mon Sep 17 00:00:00 2001 From: Steve Brownlee Date: Tue, 16 Jul 2024 14:46:24 -0500 Subject: [PATCH] Add new field to admin interface for StudentCohort --- LearningAPI/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LearningAPI/admin.py b/LearningAPI/admin.py index 6f99a7b..626ca41 100644 --- a/LearningAPI/admin.py +++ b/LearningAPI/admin.py @@ -87,8 +87,9 @@ class CapstoneTimelineAdmin(admin.ModelAdmin): @admin.register(NssUserCohort) class NssUserCohortAdmin(admin.ModelAdmin): """For assigning students to cohorts""" - list_display = ('nss_user', 'cohort',) + list_display = ('nss_user', 'cohort', 'is_github_org_member') search_fields = ["nss_user__user__last_name"] + ordering = ('-pk',) search_help_text = "Search by last name" @admin.register(StudentTag)