Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
fix bug 1317316: Improve error message when tag list is too long (#4070)
Browse files Browse the repository at this point in the history
* fix bug 1317316

* fix bug 1317316

* modified .travis.yml file

* fix bug 1317316

* fix bug 1317316

* fix bug 1317316

* fix bug 1317316
  • Loading branch information
gautamramk authored and escattone committed Jan 24, 2017
1 parent 3c22d83 commit 9f7430a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Empty file added forms.py
Empty file.
6 changes: 6 additions & 0 deletions kuma/wiki/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
u'characters or less. It is currently %(show_value)s '
u'characters.')
TITLE_PLACEHOLDER = _(u'Name Your Article')
TAGS_LONG = _(u'The tags field is too long (%(show_value)s characters). '
u'Keep the total length to %(limit_value)s characters.')
SLUG_REQUIRED = _(u'Please provide a slug.')
SLUG_INVALID = _(u'The slug provided is not valid.')
SLUG_SHORT = _(u'The slug is too short (%(show_value)s characters). '
Expand Down Expand Up @@ -430,7 +432,11 @@ class RevisionForm(AkismetCheckFormMixin, forms.ModelForm):

tags = StrippedCharField(
required=False,
max_length=255,
label=_(u'Tags:'),
error_messages={
'max_length': TAGS_LONG,
}
)

keywords = StrippedCharField(
Expand Down

0 comments on commit 9f7430a

Please sign in to comment.