Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #600 -- decorator_from_middleware now handles process_view. Tha…

…nks, Hugo

git-svn-id: http://code.djangoproject.com/svn/django/trunk@820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f258a8fce28ca65f2cfb3798b36f262c65639190 1 parent 22bbdc6
Adrian Holovaty authored October 10, 2005

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  django/utils/decorators.py
4  django/utils/decorators.py
@@ -12,6 +12,10 @@ def _wrapped_view(request, *args, **kwargs):
12 12
                 result = middleware.process_request(request)
13 13
                 if result is not None:
14 14
                     return result
  15
+            if hasattr(middleware, 'process_view'):
  16
+                result = middleware.process_view(request, view_func, **kwargs)
  17
+                if result is not None:
  18
+                    return result
15 19
             response = view_func(request, *args, **kwargs)
16 20
             if hasattr(middleware, 'process_response'):
17 21
                 result = middleware.process_response(request, response)

0 notes on commit f258a8f

Please sign in to comment.
Something went wrong with that request. Please try again.