X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ad1668b8cb656377520a71bd2c11565ba0afbf23..2a6f98f4c11892c606ac1e77771f8ebf67039cb2:/apps/wiki/forms.py diff --git a/apps/wiki/forms.py b/apps/wiki/forms.py index 6db1903d..ac219b17 100644 --- a/apps/wiki/forms.py +++ b/apps/wiki/forms.py @@ -78,8 +78,8 @@ class DocumentTextSaveForm(forms.Form): cover_url = doc.meta.get_one(DCNS('relation.coverimage.url')) if cover_url: ext = cover_url.rsplit('.', 1)[-1].lower() - if ext not in ('jpg', 'jpeg', 'png', 'gif', 'tif', 'tiff'): - raise ValidationError('Invalid cover image format, should be an image file (jpg, png, gif). ' + if ext not in ('jpg', 'jpeg', 'png', 'gif', 'svg'): + raise ValidationError('Invalid cover image format, should be an image file (jpg, png, gif, svg). ' 'Change it in Metadata.') return text