#22494: Can't use partials as views since 1.6.3 security update
-----------------------------+------------------------
Reporter: pronik | Owner: nobody
Type: Bug | Status: new
Component: Core (URLs) | Version: 1.6
Severity: Normal | Keywords: regression
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------
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`.
--
Ticket URL: <https://code.djangoproject.com/ticket/22494>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.