From 60ad315bc9fa9595409ad9d7d21c6a12c133ac81 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 9 Nov 2010 05:18:47 +0000 Subject: [PATCH] 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 --- docs/ref/forms/fields.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 8398918bff..7f18c673b6 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -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 @@ -910,11 +910,11 @@ example:: .. class:: ModelMultipleChoiceField(**kwargs) * Default widget: ``SelectMultiple`` - * Empty value: ``[]`` (an empty list) + * Empty value: ``[]`` (an empty list) * Normalizes to: A list of model instances. * Validates that every id in the given list of values exists in the queryset. - * Error message keys: ``required``, ``list``, ``invalid_choice``, + * Error message keys: ``required``, ``list``, ``invalid_choice``, ``invalid_pk_value`` Allows the selection of one or more model objects, suitable for