fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"mouse" cursor
[redakcja.git]
/
apps
/
catalogue
/
forms.py
diff --git
a/apps/catalogue/forms.py
b/apps/catalogue/forms.py
index
cbb1ad9
..
5a8e4b2
100644
(file)
--- a/
apps/catalogue/forms.py
+++ b/
apps/catalogue/forms.py
@@
-32,7
+32,7
@@
class DocumentCreateForm(forms.Form):
def clean_cover(self):
cover = self.cleaned_data['cover']
def clean_cover(self):
cover = self.cleaned_data['cover']
- if cover and cover.name.rsplit('.', 1)[-1].lower() not in ('jpg', 'jpeg', 'png', 'gif', '
tif', 'tiff
'):
+ if cover and cover.name.rsplit('.', 1)[-1].lower() not in ('jpg', 'jpeg', 'png', 'gif', '
svg
'):
raise forms.ValidationError(_('The cover should be an image file (jpg/png/gif)'))
return file
raise forms.ValidationError(_('The cover should be an image file (jpg/png/gif)'))
return file