Ticket #13125: ticket_13125_patch2.diff
File ticket_13125_patch2.diff, 466 bytes (added by , 13 years ago) |
---|
-
decorators.py
39 39 to the log-in page if necessary. 40 40 """ 41 41 actual_decorator = user_passes_test( 42 lambda u: u.is_authenticated() ,42 lambda u: u.is_authenticated() and getattr(u, 'is_active', True), 43 43 login_url=login_url, 44 44 redirect_field_name=redirect_field_name 45 45 )