X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0fef41d028692ec97375b9a10376f2029e519042..e1d8e7d01dce3efa5a4c313042a87a0ec8c31658:/apps/wiki/forms.py diff --git a/apps/wiki/forms.py b/apps/wiki/forms.py index 6db1903d..c2cb0eef 100644 --- a/apps/wiki/forms.py +++ b/apps/wiki/forms.py @@ -44,7 +44,7 @@ class DocumentTextSaveForm(forms.Form): ) stage = forms.ChoiceField( - choices=[(s, s) for s in STAGES], + choices=STAGES, required=False, label=_(u"Stage"), help_text=_(u"If completed a work stage, change to another one."), @@ -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