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:
parent
0292578745
commit
911a6dfe04
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue