Opened 16 years ago
Closed 16 years ago
#8057 closed (duplicate)
Forms clean documentation omits essential
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | forms, newforms, clean | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Needed to dig into the source but the current documentation does not reflect that clean_FOO needs to return the cleaned value.
As in forms.py:
value = getattr(self, 'clean_%s' % name)()
self.cleaned_data[name] = value
So attached is a patch for the forms.txt documentation.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | forms.patch added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #7428.