summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-08-23 04:59:25 +0000
committerBrian Rosner <brosner@gmail.com>2008-08-23 04:59:25 +0000
commit5061970b76194d6a170d80ffab18260f138951c4 (patch)
tree631b931d5a3c7548c691a8b4d1f0b53ef7ff9cdc /docs
parenta64dc39fb7c6787c83ea2e807c5bf2f94ad5909d (diff)
Fixed #8040 -- SlugField now returns a proper formfield to deal with validation. Thanks Daniel Pope for the ticket and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/modelforms.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/modelforms.txt b/docs/modelforms.txt
index 1be7c3a882..b9495e0acd 100644
--- a/docs/modelforms.txt
+++ b/docs/modelforms.txt
@@ -65,7 +65,8 @@ the full list of conversions:
(from ``django.contrib.localflavor.us``)
``PositiveIntegerField`` ``IntegerField``
``PositiveSmallIntegerField`` ``IntegerField``
- ``SlugField`` ``CharField``
+ ``SlugField`` ``RegexField`` accepting only letters,
+ numbers, underscores and hyphens
``SmallIntegerField`` ``IntegerField``
``TextField`` ``CharField`` with ``widget=Textarea``
``TimeField`` ``TimeField``