Django

Code

Changeset 820

Show
Ignore:
Timestamp:
10/10/05 08:51:58 (3 years ago)
Author:
adrian
Message:

Fixed #600 -- decorator_from_middleware now handles process_view. Thanks, Hugo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/decorators.py

    r807 r820  
    1313                if result is not None: 
    1414                    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 
    1519            response = view_func(request, *args, **kwargs) 
    1620            if hasattr(middleware, 'process_response'):