diff options
| author | Christian Schmitt <c.schmitt@envisia.de> | 2013-12-09 22:54:11 +0100 |
|---|---|---|
| committer | Christian Schmitt <c.schmitt@envisia.de> | 2013-12-09 22:54:11 +0100 |
| commit | 744aac6dace325752e3b1c7c8af64a7bc655186f (patch) | |
| tree | 7a7d699b2f456e30afe1da74ec0f11592a7a98a2 /docs | |
| parent | c047dda057542b3b8722c6433028e3b800c38af9 (diff) | |
Fixed #21560 -- missing 'slug' field in example code
I updated the documentation, that the modelform now includes the 'slug' field.
Diffstat (limited to 'docs')
| -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 d8d1c106f8..394cf1f319 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 |
