Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Backport of 744aac6 from master
  • Loading branch information...
commit d6d700fc6d5c32b86989a51a8a721e09ca26f1f4 1 parent ef9832f
@schmitch schmitch authored timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/forms/modelforms.txt
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
Please sign in to comment.
Something went wrong with that request. Please try again.