From 670c694379217887a1129537c527d8843931e887 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sat, 26 Jun 2021 18:09:58 +0200 Subject: [PATCH] script author as read only --- 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 96295c16..66ebd56d 100644 --- a/teleforma/exam/admin.py +++ b/teleforma/exam/admin.py @@ -34,7 +34,7 @@ class ScriptAdmin(admin.ModelAdmin): ordering = ['-date_added'] search_fields = ['author__username', 'author__last_name', 'corrector__username', 'corrector__last_name', 'course__title', 'course__code'] - readonly_fields = ['date_added','uuid','box_uuid','sha1','mime_type'] + readonly_fields = ['date_added','uuid','box_uuid','sha1','mime_type', 'author'] list_filter = ['period', 'course__title', 'session', 'type', 'status', 'date_submitted', 'date_marked', 'date_rejected', 'author__student__platform_only'] -- 2.39.5