From 84328b27e3a8d9cf07a1b17790bf99bf4b02be85 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 5 Apr 2018 15:37:27 +0200 Subject: [PATCH] fix "add cover image" form - missing source url --- apps/cover/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/cover/forms.py b/apps/cover/forms.py index 7306b33a..513bdefb 100755 --- a/apps/cover/forms.py +++ b/apps/cover/forms.py @@ -44,6 +44,7 @@ class ImageAddForm(forms.ModelForm): raise forms.ValidationError(mark_safe( ugettext('Image already in repository' % same_source.first().get_absolute_url()))) + return source_url def clean(self): cleaned_data = super(ImageAddForm, self).clean() -- 2.20.1