Fixed #319 -- Updated docs/model-api.txt to note that prepopulate_from doesn't accept DateTimeFields

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-06 22:53:07 +00:00
parent 0292578745
commit 911a6dfe04
1 changed files with 4 additions and 1 deletions

View File

@ -387,7 +387,10 @@ Here are all available field types:
meta.SlugField(prepopulate_from=("pre_name", "name")) meta.SlugField(prepopulate_from=("pre_name", "name"))
The admin represents this as an ``<input type="text">`` (a single-line input). ``prepopulate_from`` doesn't accept DateTimeFields.
The admin represents ``SlugField`` as an ``<input type="text">`` (a
single-line input).
``SmallIntegerField`` ``SmallIntegerField``
Like an ``IntegerField``, but only allows values under a certain Like an ``IntegerField``, but only allows values under a certain