fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6d9e86e
)
fix "add cover image" form - missing source url
author
Jan Szejko
<janek37@gmail.com>
Thu, 5 Apr 2018 13:37:27 +0000
(15:37 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 5 Apr 2018 13:37:27 +0000
(15:37 +0200)
apps/cover/forms.py
patch
|
blob
|
history
diff --git
a/apps/cover/forms.py
b/apps/cover/forms.py
index
7306b33
..
513bdef
100755
(executable)
--- 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 <a href="%s">already in repository</a>'
% same_source.first().get_absolute_url())))
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()
def clean(self):
cleaned_data = super(ImageAddForm, self).clean()