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:31:07 -0300 |
| commit | cb5dd99bb422dff38d5e804a91fe876f19a884e6 (patch) | |
| tree | 6be68cc079b8d2e32fb906617631d408407e52be | |
| parent | 47509e3c5d7acc94aaa7999533e50710e12121a8 (diff) | |
Corrected an import in a model form docs example.
| -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 642616d438..e51eda12e6 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -544,7 +544,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): |
