Ticket #9474: user_passes_test_decorator_r9295.diff
File user_passes_test_decorator_r9295.diff, 664 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/decorators.py
56 56 self.test_func = test_func 57 57 self.login_url = login_url 58 58 self.redirect_field_name = redirect_field_name 59 update_wrapper(self, view_func )60 59 update_wrapper(self, view_func, updated=()) 60 61 61 def __get__(self, obj, cls=None): 62 62 view_func = self.view_func.__get__(obj, cls) 63 63 return _CheckLogin(view_func, self.test_func, self.login_url, self.redirect_field_name)