mirror of
https://github.com/django/django.git
synced 2025-11-12 00:34:32 +00:00
Fixed #5110 -- Made a small clarification in docs/model-api.txt. Thanks, Jarek Zgoda
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
36be3febef
commit
d1bef59905
1 changed files with 2 additions and 1 deletions
|
|
@ -415,7 +415,8 @@ form::
|
||||||
|
|
||||||
models.SlugField(prepopulate_from=("pre_name", "name"))
|
models.SlugField(prepopulate_from=("pre_name", "name"))
|
||||||
|
|
||||||
``prepopulate_from`` doesn't accept DateTimeFields.
|
``prepopulate_from`` doesn't accept DateTimeFields, ForeignKeys nor
|
||||||
|
ManyToManyFields.
|
||||||
|
|
||||||
The admin represents ``SlugField`` as an ``<input type="text">`` (a
|
The admin represents ``SlugField`` as an ``<input type="text">`` (a
|
||||||
single-line input).
|
single-line input).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue