From: Guillaume Pellerin Date: Sat, 26 Jun 2021 16:09:58 +0000 (+0200) Subject: script author as read only X-Git-Tag: 2.1~29 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=670c694379217887a1129537c527d8843931e887;p=teleforma.git script author as read only --- 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']