Browse files

Added a quick example of prepopulate_from to clarify the description

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
jacobian committed Aug 14, 2005
1 parent b149fc3 commit 54f93895a8938ef3d76370f6bf57997cf34a1d93
Showing with 3 additions and 1 deletion.
  1. +3 −1 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"),
Like an ``IntegerField``, but only allows values under a certain

0 comments on commit 54f9389

Please sign in to comment.