0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Added a quick example of prepopulate_from to clarify the description

git-svn-id: http://code.djangoproject.com/svn/django/trunk@493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-08-14 01:09:51 +00:00
parent b149fc3671
commit 54f93895a8

View File

@ -532,7 +532,9 @@ Field Types
Accepts an extra option, ``prepopulate_from``, which is a list of fields
from which to auto-populate the slug, via JavaScript, in the object's admin
form.
form::
meta.SlugField("slug", prepopulate_from=("pre_name", "name"),
``SmallIntegerField``
Like an ``IntegerField``, but only allows values under a certain