]> git.parisson.com Git - teleforma.git/commitdiff
script author as read only
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sat, 26 Jun 2021 16:09:58 +0000 (18:09 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sat, 26 Jun 2021 16:09:58 +0000 (18:09 +0200)
teleforma/exam/admin.py

index 96295c169762a05384af18abc8f67eac6fa9f819..66ebd56d843a190658c09d8ec13be1d8ea5d540e 100644 (file)
@@ -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']