From: Yoan Le Clanche Date: Wed, 1 Sep 2021 13:28:25 +0000 (+0200) Subject: Fix https://trackers.pilotsystems.net/prebarreau/0248 where professor were not visibl... X-Git-Tag: 2.5.0~68 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=938052e4226a71b8799a073c9b5fe1d27e2f933f;p=teleforma.git Fix https://trackers.pilotsystems.net/prebarreau/0248 where professor were not visible in exam admin --- 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):