Kaydet (Commit) cb5dd99b authored tarafından Ramiro Morales's avatar Ramiro Morales

Corrected an import in a model form docs example.

üst 47509e3c
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment