Ticket #9474: user_passes_test_decorator_r9295.diff

File user_passes_test_decorator_r9295.diff, 664 bytes (added by Manuel Saelices, 16 years ago)

Patch that fixes issue

  • django/contrib/auth/decorators.py

     
    5656        self.test_func = test_func
    5757        self.login_url = login_url
    5858        self.redirect_field_name = redirect_field_name
    59         update_wrapper(self, view_func)
    60        
     59        update_wrapper(self, view_func, updated=())
     60
    6161    def __get__(self, obj, cls=None):
    6262        view_func = self.view_func.__get__(obj, cls)
    6363        return _CheckLogin(view_func, self.test_func, self.login_url, self.redirect_field_name)
Back to Top