From aee3eef6e1f1c4805da7d8b85799e6b9104b3216 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 20 Nov 2013 12:10:00 +0100 Subject: [PATCH 1/1] Hide end_time field from admin view --- wtem/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtem/admin.py b/wtem/admin.py index 45ebece..b4b39fb 100644 --- a/wtem/admin.py +++ b/wtem/admin.py @@ -37,7 +37,7 @@ class AttachmentWidget(forms.Widget): class SubmissionFormBase(forms.ModelForm): class Meta: model = Submission - exclude = ('answers', 'marks', 'contact') + readonly_fields + exclude = ('answers', 'marks', 'contact', 'end_time') + readonly_fields def get_open_answer(answers, exercise): -- 2.20.1