Commit d6d700fc authored by Christian Schmitt's avatar Christian Schmitt Committed by Tim Graham
Browse files

[1.6.x] Fixed #21560 -- Added missing 'slug' field in example code.

Backport of 744aac6d from master
parent ef9832f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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