X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/98ee5cf033d8530bcf8a1464c9037552aa38aa67..2ed000ca9a064cd6a3b7c7f2bf7c4e6e55c9c914:/wtem/admin.py 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):