Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 54f93895a8938ef3d76370f6bf57997cf34a1d93 1 parent b149fc3
Jacob Kaplan-Moss authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  docs/model-api.txt
4  docs/model-api.txt
@@ -532,7 +532,9 @@ Field Types
532 532
 
533 533
     Accepts an extra option, ``prepopulate_from``, which is a list of fields
534 534
     from which to auto-populate the slug, via JavaScript, in the object's admin
535  
-    form.
  535
+    form::
  536
+        
  537
+        meta.SlugField("slug", prepopulate_from=("pre_name", "name"),
536 538
 
537 539
 ``SmallIntegerField``
538 540
     Like an ``IntegerField``, but only allows values under a certain

0 notes on commit 54f9389

Please sign in to comment.
Something went wrong with that request. Please try again.