#14512: Documentation & tools for decorating class-based-views.
---------------------------------------+-----------------------------------
Reporter: lrekucki | Owner: lrekucki
Type: New feature | Status: reopened
Milestone: 1.4 | Component: Generic views
Version: SVN | Severity: Normal
Resolution: | Keywords: class-based-views
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+-----------------------------------
Comment (by roalddevries):
- corrected the documentation
- made the tests more comprehensible by using global namespace for cbv's
that are used in the tests
- improved the patch in a few ways:
- the `as_view` classonlymethod of the decorated class can now take
parameters
- the `as_view` doesn't rely on default function parameters anymore
for correct resolution of the decorator and the original `as_view`
- prevented `super(SomeView, self)` from raising a `TypeError` by
basing the new `as_view` not on the original ''classonlymethod'' but on
its underlying ''function''
--
Ticket URL: <https://code.djangoproject.com/ticket/14512#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.