From: Aleksander Ɓukasz Date: Thu, 7 Nov 2013 15:36:18 +0000 (+0100) Subject: Fix saving submission with file upload exercises X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/62b20fef21a715aca5e20565a6c1711bcd9841b1?ds=sidebyside Fix saving submission with file upload exercises Without this change missing field error is generated --- 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: