summaryrefslogtreecommitdiff
path: root/docs/model-api.txt
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2005-08-14 01:09:51 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2005-08-14 01:09:51 +0000
commit54f93895a8938ef3d76370f6bf57997cf34a1d93 (patch)
treea97bb742664b924e60c500159859c4ef27812191 /docs/model-api.txt
parentb149fc367178d90b757e8711a218e0ca54c1c88f (diff)
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
Diffstat (limited to 'docs/model-api.txt')
-rw-r--r--docs/model-api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index a890d93923..46894d7a81 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -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