mirror of
https://github.com/django/django.git
synced 2025-12-20 15:50:19 +00:00
Fixed #878 -- URLconf regex captures no longer have to be named groups. Old URLconfs (with named groups) still work. This is backwards-incompatible if you've defined custom middleware with a process_view function. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8c3b41c3e9
commit
cc3660c07d
4 changed files with 20 additions and 11 deletions
|
|
@ -13,7 +13,7 @@ def decorator_from_middleware(middleware_class):
|
|||
if result is not None:
|
||||
return result
|
||||
if hasattr(middleware, 'process_view'):
|
||||
result = middleware.process_view(request, view_func, **kwargs)
|
||||
result = middleware.process_view(request, view_func, *args, **kwargs)
|
||||
if result is not None:
|
||||
return result
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue