Fixed #14650 -- noted that underscores are also valid in slug fields. Thanks to stringify for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor 2010-11-09 05:18:47 +00:00
parent 7a5c54e9b7
commit 60ad315bc9
1 changed files with 4 additions and 4 deletions

View File

@ -682,8 +682,8 @@ and the error message as the value.
* Default widget: ``TextInput`` * Default widget: ``TextInput``
* Empty value: ``''`` (an empty string) * Empty value: ``''`` (an empty string)
* Normalizes to: A Unicode object. * Normalizes to: A Unicode object.
* Validates that the given value contains only letters, numbers and * Validates that the given value contains only letters, numbers,
hyphens. underscores, and hyphens.
* Error messages: ``required``, ``invalid`` * Error messages: ``required``, ``invalid``
This field is intended for use in representing a model This field is intended for use in representing a model