Commit 66c72b1f authored by Alex Gaynor's avatar Alex Gaynor
Browse files

[1.2.X] Fixed #14650 -- noted that underscores are also valid in slug fields. ...

[1.2.X] Fixed #14650 -- noted that underscores are also valid in slug fields.  Thanks to stringify for the report and patch.  Backport of [14503].

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent caf51bfc
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -682,8 +682,8 @@ and the error message as the value.
   * Default widget: ``TextInput``
   * Empty value: ``''`` (an empty string)
   * Normalizes to: A Unicode object.
   * Validates that the given value contains only letters, numbers and
     hyphens.
   * Validates that the given value contains only letters, numbers,
     underscores, and hyphens.
   * Error messages: ``required``, ``invalid``

This field is intended for use in representing a model