X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/18b53f03ffd1620e2f3f5b1c17e7dd12c6a6afa6..595b994bd80cf1a6bc9a6d39fb95fc17a4999760:/apps/catalogue/forms.py diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index cbb1ad9d..5a8e4b2f 100644 --- 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'] - 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