mirror of
https://github.com/django/django.git
synced 2025-06-04 02:59:13 +00:00
Merge pull request #2058 from c-schmitt/fixes_21560
Fixed #21560 -- missing 'slug' field in example code
This commit is contained in:
commit
0873200e7f
@ -528,7 +528,7 @@ field, you could do the following::
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Article
|
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
|
If you want to specify a field's validators, you can do so by defining
|
||||||
|
Loading…
x
Reference in New Issue
Block a user