mirror of
https://github.com/django/django.git
synced 2025-10-04 15:55:09 +00:00
[1.7.x] Corrected an import in a model form docs example.
cb5dd99bb4
from master.
This commit is contained in:
parent
273f8e2297
commit
422f5d9a2c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue