From: Aleksander Ɓukasz Date: Fri, 22 Nov 2013 08:10:15 +0000 (+0100) Subject: Fix in AttachmentWidget - handling encoded urls correctly X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/79d2fe9bed3413ca16d5ecb8e4095d43dc351135?hp=591fb2bbadcbdcdd89d38a0980c8ee0bfb471bae Fix in AttachmentWidget - handling encoded urls correctly --- diff --git a/wtem/admin.py b/wtem/admin.py index b4b39fb..d4b6682 100644 --- a/wtem/admin.py +++ b/wtem/admin.py @@ -32,7 +32,7 @@ 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: