Opened 17 years ago
Closed 17 years ago
#6125 closed (wontfix)
Decorators and FormPreview doesn't work anymore since 6659.
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.formtools | Version: | dev |
Severity: | Keywords: | decorator formtools | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The fix from changeset 6659 leads to an error if you combine a FormPreview with a decorator, because FormPreview (as a class) doesn't has a __name__
method.
Note:
See TracTickets
for help on using tickets.
Decorators are designed for functions, not classes; you shouldn't be using a decorator on a class.