From 744aac6dace325752e3b1c7c8af64a7bc655186f Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Mon, 9 Dec 2013 22:54:11 +0100 Subject: [PATCH] Fixed #21560 -- missing 'slug' field in example code I updated the documentation, that the modelform now includes the 'slug' field. --- 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 d8d1c106f8..394cf1f319 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