diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2014-03-30 20:30:07 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2014-03-30 20:37:02 -0300 |
| commit | c0882fefcaca82e25318397bf85ae43dfed90775 (patch) | |
| tree | 02e6e1a62e7b0cd86738c259ae4445b30f475f92 /docs | |
| parent | 059bc7eb60a43de3679e5a0320f631a30d8e4e13 (diff) | |
[1.6.x] Corrected an import in a model form docs example.
422f5d9a2c from master.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index f513c44854..fd12a919ba 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -534,7 +534,7 @@ field, you could do the following:: If you want to specify a field's validators, you can do so by defining the field declaratively and setting its ``validators`` parameter:: - from django.forms import ModelForm, DateField + from django.forms import ModelForm, CharField from myapp.models import Article class ArticleForm(ModelForm): |
