Code

Ticket #5110: model.api.diff

File model.api.diff, 489 bytes (added by Jarek Zgoda <jarek.zgoda@…>, 7 years ago)

The basic diff to current docs

Line 
1Index: docs/model-api.txt
2===================================================================
3--- docs/model-api.txt  (revision 5830)
4+++ docs/model-api.txt  (working copy)
5@@ -415,7 +415,8 @@
6 
7     models.SlugField(prepopulate_from=("pre_name", "name"))
8 
9-``prepopulate_from`` doesn't accept DateTimeFields.
10+``prepopulate_from`` doesn't accept DateTimeFields, ForeignKeys nor
11+ManyToManyFields.
12 
13 The admin represents ``SlugField`` as an ``<input type="text">`` (a
14 single-line input).