Skip to content
Browse files

Fixed #21560 -- missing 'slug' field in example code

I updated the documentation, that the modelform now includes the 'slug' field.
  • Loading branch information...
1 parent c047dda commit 744aac6dace325752e3b1c7c8af64a7bc655186f @schmitch schmitch 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

0 comments on commit 744aac6

Please sign in to comment.
Something went wrong with that request. Please try again.