0
0
mirror of https://github.com/django/django.git synced 2024-11-29 14:46:18 +01:00

Corrected an import in a model form docs example.

This commit is contained in:
Ramiro Morales 2014-03-30 20:30:07 -03:00
parent 47509e3c5d
commit cb5dd99bb4

View File

@ -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 If you want to specify a field's validators, you can do so by defining
the field declaratively and setting its ``validators`` parameter:: 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 from myapp.models import Article
class ArticleForm(ModelForm): class ArticleForm(ModelForm):