diff options
| author | Christian Schmitt <c.schmitt@envisia.de> | 2013-12-09 22:54:11 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-12-10 07:25:43 -0500 |
| commit | d6d700fc6d5c32b86989a51a8a721e09ca26f1f4 (patch) | |
| tree | 59c2828ec090786f72e815f683ccca0d81542703 | |
| parent | ef9832f148d72cd8a32c9398d8dd8600d30f0ab8 (diff) | |
[1.6.x] Fixed #21560 -- Added missing 'slug' field in example code.
Backport of 744aac6dac from master
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index d7741ce2d7..48e045442b 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -528,7 +528,7 @@ field, you could do the following:: class Meta: model = Article - fields = ['pub_date', 'headline', 'content', 'reporter'] + fields = ['pub_date', 'headline', 'content', 'reporter', 'slug'] If you want to specify a field's validators, you can do so by defining |
