#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.128caedb1e07efb4affcdaf9f0136926%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to