I'm not sure if I understand the problem correctly, but I think this might
be what you're looking to do.
In your ModelForm, simply exclude the fields you don't want or explicitly
include only the fields you do want to use. Those are both under the
ModelForm's Meta class.
e.g.
# Include only thes
>From 1.2 release notes (backward incompatible change):
"Much of the validation work for ModelForms has been moved down to the
model level. As a result, the first time you call
ModelForm.is_valid(), access ModelForm.errors or otherwise trigger
form validation, your model will be cleaned in-place. T
2 matches
Mail list logo