mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed #21560 -- missing 'slug' field in example code
I updated the documentation, that the modelform now includes the 'slug' field.
This commit is contained in:
parent
c047dda057
commit
744aac6dac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user