diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 22:08:51 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 22:08:51 +0000 |
| commit | cc3660c07da01965870c3183e740f0694fcf0809 (patch) | |
| tree | 3b6380d9b4d0a1c04c0fc65ba71c3473644f2252 /django/utils | |
| parent | 8c3b41c3e90f6462c7f2142243c7e3e62169683f (diff) | |
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
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/decorators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/decorators.py b/django/utils/decorators.py index 3ec5b4cbbf..1c6cc8c7de 100644 --- a/django/utils/decorators.py +++ b/django/utils/decorators.py @@ -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: |
