Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2766 closed defect (duplicate)

all of djangos decorators generating wrappers dont assign necessary attributes to the wrapper

Reported by: anonymous Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


the wrapped functions name, dict, module, and doc arent transfered to the wrapper function

this is very confusing and makes some stuff very hard

found the problem when i tried to add dynamic resolving of the base-url to my app by resolving the view for "/" with the apps urlconf and using its name + module to reverse-resolve the url for it

but the function was inner_func from django.decorators....

Change History (1)

comment:1 Changed 12 years ago by Gary Wilson <gary.wilson@…>

Resolution: duplicate
Status: newclosed

Marking this a duplicate of #1840, there is more discussion there.

Note: See TracTickets for help on using tickets.
Back to Top