Opened 11 years ago

Closed 11 years ago

#22494 closed Bug (duplicate)

Can't use partials as views since 1.6.3 security update

Reported by: pronik Owned by: nobody
Component: Core (URLs) Version: 1.6
Severity: Normal Keywords: regression
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have several views which are similar, but take different start values, so I defined a function def _view(value1, value2, request, param1, param2), which gets partially applied to be used as several actual views: view1 = partial(_view, "value1", "value2"). Now, with 1.6.3, partially applied function is no longer a valid view, throwing an AttributeError: 'functools.partial' object has no attribute '__module__' in django/core/urlresolvers.py in _populate:272.

Change History (1)

comment:1 by Claude Paroz, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #22486

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