From d6d700fc6d5c32b86989a51a8a721e09ca26f1f4 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Mon, 9 Dec 2013 22:54:11 +0100 Subject: [PATCH] [1.6.x] Fixed #21560 -- Added missing 'slug' field in example code. Backport of 744aac6dac from master --- docs/topics/forms/modelforms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index d7741ce2d7..48e045442b 100644 --- a/docs/topics/forms/modelforms.txt +++ b/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