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
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
#: static/wiki/editor/src/editor/plugins/core/metadataEditor/action.js:33
msgid ""
-"The cover needs to be an image file: jpg, png, gif. Use another URL or clear "
+"The cover needs to be an image file: jpg, png, gif, svg. Use another URL or clear "
"the cover field."
msgstr ""
-"Okładka musi być plikiem graficznym: jpg, png, gif. Użyj innego adresu lub "
+"Okładka musi być plikiem graficznym: jpg, png, gif, svg. Użyj innego adresu lub "
"wyczyść pole okładki."
#: static/wiki/editor/src/editor/plugins/core/metadataEditor/view.js:28
-Subproject commit e32eab0deee844e3df8dfdfd784da674260c2351
+Subproject commit 667a0106a4beba6eb4dfde0398b2223adf0ebac9
-Subproject commit 30a74b436b8a81adbdbeea5a9b2f99dfc2e4949f
+Subproject commit 8287173da88bfaa3a8b90a39768198dceba2e25f