Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 60ad315bc9fa9595409ad9d7d21c6a12c133ac81 1 parent 7a5c54e
Alex Gaynor authored November 09, 2010

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  docs/ref/forms/fields.txt
8  docs/ref/forms/fields.txt
@@ -682,8 +682,8 @@ and the error message as the value.
682 682
    * Default widget: ``TextInput``
683 683
    * Empty value: ``''`` (an empty string)
684 684
    * Normalizes to: A Unicode object.
685  
-   * Validates that the given value contains only letters, numbers and
686  
-     hyphens.
  685
+   * Validates that the given value contains only letters, numbers,
  686
+     underscores, and hyphens.
687 687
    * Error messages: ``required``, ``invalid``
688 688
 
689 689
 This field is intended for use in representing a model
@@ -910,11 +910,11 @@ example::
910 910
 .. class:: ModelMultipleChoiceField(**kwargs)
911 911
 
912 912
     * Default widget: ``SelectMultiple``
913  
-    * Empty value: ``[]`` (an empty list) 
  913
+    * Empty value: ``[]`` (an empty list)
914 914
     * Normalizes to: A list of model instances.
915 915
     * Validates that every id in the given list of values exists in the
916 916
       queryset.
917  
-    * Error message keys: ``required``, ``list``, ``invalid_choice``, 
  917
+    * Error message keys: ``required``, ``list``, ``invalid_choice``,
918 918
       ``invalid_pk_value``
919 919
 
920 920
 Allows the selection of one or more model objects, suitable for

0 notes on commit 60ad315

Please sign in to comment.
Something went wrong with that request. Please try again.