Browse files

[1.6.x] Fixed #21560 -- Added missing 'slug' field in example code.

Backport of 744aac6 from master
  • Loading branch information...
1 parent ef9832f commit d6d700fc6d5c32b86989a51a8a721e09ca26f1f4 @schmitch schmitch committed with timgraham Dec 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/forms/modelforms.txt
View
2 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

0 comments on commit d6d700f

Please sign in to comment.