X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/98ee5cf033d8530bcf8a1464c9037552aa38aa67..a4d51d90f268865744a6d54c83d0f298d1faa42d:/wtem/admin.py?ds=inline
diff --git a/wtem/admin.py b/wtem/admin.py
index 45ebece..d4b6682 100644
--- a/wtem/admin.py
+++ b/wtem/admin.py
@@ -32,12 +32,12 @@ class AttachmentWidget(forms.Widget):
a_tag = '%s' % (value, value)
else:
a_tag = 'brak'
- return mark_safe(('' + a_tag) % (name, value))
+ return mark_safe(('' % (name, value)) + a_tag)
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):