From 62b20fef21a715aca5e20565a6c1711bcd9841b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 7 Nov 2013 16:36:18 +0100 Subject: [PATCH] Fix saving submission with file upload exercises Without this change missing field error is generated --- wtem/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtem/admin.py b/wtem/admin.py index a101cad..c3405b4 100644 --- a/wtem/admin.py +++ b/wtem/admin.py @@ -25,7 +25,7 @@ readonly_fields = ('submitted_by', 'first_name', 'last_name', 'email', 'key', 'k class AttachmentWidget(forms.Widget): def render(self, name, value, *args, **kwargs): - return mark_safe('%s' % (value, value)) + return mark_safe('%s' % (name, value, value, value)) class SubmissionFormBase(forms.ModelForm): class Meta: -- 2.20.1