From 83623d45c754dff956a3bc90ee34e35bca8a1bce Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 16 Apr 2009 12:46:58 +0000 Subject: Fixed #10776 -- Added metadata targets for the contrib.admin docs, and used one of those targets to clarify the SlugField docs. Thanks to ernop for the suggestion, and timo for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10564 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/models/fields.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/ref/models') diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 6630b7bc26..2ec74e4306 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -689,6 +689,10 @@ default length of 50. Implies setting :attr:`Field.db_index` to ``True``. +It is often useful to automatically prepopulate a SlugField based on the value +of some other value. You can do this automatically in the admin using +:attr:`~django.contrib.admin.ModelAdmin.prepopulated_fields`. + ``SmallIntegerField`` --------------------- -- cgit v1.3