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:
Adrian Holovaty 2005-11-27 22:08:51 +00:00
parent 8c3b41c3e9
commit cc3660c07d
4 changed files with 20 additions and 11 deletions

View file

@ -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: