fix "add cover image" form - missing source url
authorJan Szejko <janek37@gmail.com>
Thu, 5 Apr 2018 13:37:27 +0000 (15:37 +0200)
committerJan Szejko <janek37@gmail.com>
Thu, 5 Apr 2018 13:37:27 +0000 (15:37 +0200)
apps/cover/forms.py

index 7306b33..513bdef 100755 (executable)
@@ -44,6 +44,7 @@ class ImageAddForm(forms.ModelForm):
                 raise forms.ValidationError(mark_safe(
                     ugettext('Image <a href="%s">already in repository</a>'
                              % same_source.first().get_absolute_url())))
+        return source_url
 
     def clean(self):
         cleaned_data = super(ImageAddForm, self).clean()