From 938052e4226a71b8799a073c9b5fe1d27e2f933f Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Wed, 1 Sep 2021 15:28:25 +0200 Subject: [PATCH] Fix https://trackers.pilotsystems.net/prebarreau/0248 where professor were not visible in exam admin --- teleforma/exam/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/exam/admin.py b/teleforma/exam/admin.py index 44f30d99..c1dd5484 100644 --- a/teleforma/exam/admin.py +++ b/teleforma/exam/admin.py @@ -55,7 +55,7 @@ class ScriptAdmin(admin.ModelAdmin): def render_change_form(self, request, context, *args, **kwargs): - context['adminform'].form.fields['corrector'].queryset = User.objects.filter(is_active=True).filter(Q(corrector__isnull=False) | Q(is_superuser=True)) + context['adminform'].form.fields['corrector'].queryset = User.objects.filter(is_active=True).filter(Q(corrector__isnull=False) | Q(is_superuser=True) | Q(corrector__isnull=False)) return super(ScriptAdmin, self).render_change_form(request, context, *args, **kwargs) def author_name(self, instance): -- 2.39.5