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:34:29 -0300 |
| commit | 422f5d9a2cf57292195477a845264d0dd4d9fa11 (patch) | |
| tree | a2abf14f1cc2f25540ae28a1bf79a2905c85ecef /docs | |
| parent | 273f8e2297b1cd0d7998ae97710edc8b69d057f6 (diff) | |
[1.7.x] Corrected an import in a model form docs example.
cb5dd99bb4 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 bd312562cb..3de5649e2b 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -550,7 +550,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): |
