Opened 18 years ago
Closed 18 years ago
#4386 closed (duplicate)
docs/newforms.txt: Explain custom cleaning/validation
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
here is a patch to document he custom cleaning method clean_FIELDNAME()
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | newforms-cleanmethod.diff added |
---|
comment:1 by , 18 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Thanks, Thomas. I'll combine an example like yours with #4473 (which discusses the whole cleaning process) when I apply that.
Note:
See TracTickets
for help on using tickets.
By the time
clean_first_name
gets called, you can access the value incleaned_data
:but this could change slightly if #4391 gets fixed.