Best Practice for forms.Form.clean
|Reported by:||DrMeers||Owned by:||DrMeers|
|Severity:||Normal||Keywords:||form clean super inheritance|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I would advocate changing the example from:
def clean(self): cleaned_data = self.cleaned_data # ...
def clean(self): cleaned_data = super(ContactForm, self).clean() # ...
for the sake of painless form inheritance. Any opposition?
Change History (9)
Changed 3 years ago by DrMeers
comment:1 Changed 3 years ago by DrMeers
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset