mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
[1.6.x] Fixed #21560 -- Added missing 'slug' field in example code.
Backport of 744aac6dac
from master
This commit is contained in:
parent
ef9832f148
commit
d6d700fc6d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue