Skip to content

Commit

Permalink
Make alt_text optional in image forms
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed May 6, 2019
1 parent 9808514 commit 4145483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wagtail/__init__.py
Expand Up @@ -2,7 +2,7 @@

# major.minor.patch.release.number
# release must be one of alpha, beta, rc, or final
VERSION = (2, 0, 110, 'final', 0)
VERSION = (2, 0, 111, 'final', 0)

__version__ = get_version(VERSION)

Expand Down
4 changes: 2 additions & 2 deletions wagtail/images/forms.py
Expand Up @@ -71,7 +71,7 @@ class ImageInsertionForm(forms.Form):
choices=[(format.name, format.label) for format in get_image_formats()],
widget=forms.RadioSelect
)
alt_text = forms.CharField()
alt_text = forms.CharField(required=False)


class URLGeneratorForm(forms.Form):
Expand Down Expand Up @@ -106,7 +106,7 @@ class ImageCropperForm(forms.Form):
widget=forms.HiddenInput())
width = forms.IntegerField(required=False, label=_('Fit width'))
height = forms.IntegerField(required=False, label=_('height'))
alt_text = forms.CharField()
alt_text = forms.CharField(required=False)

ratios = ('1:1', '4:3', '16:9', '2:1', 'free')
default_ratio = 'free'
Expand Down

0 comments on commit 4145483

Please sign in to comment.