From 79d2fe9bed3413ca16d5ecb8e4095d43dc351135 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 22 Nov 2013 09:10:15 +0100 Subject: [PATCH] Fix in AttachmentWidget - handling encoded urls correctly --- wtem/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.20.1