Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 744aac6dace325752e3b1c7c8af64a7bc655186f 1 parent c047dda
@schmitch schmitch authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.