beat.web.utils.decorators module¶
Django decorators
-
beat.web.utils.decorators.login_forbidden(function=None, redirect_field_name=None, redirect_to='index')[source]¶ Decorator for views that checks that the user is NOT logged in, redirecting to the homepage if necessary.
Inspired from: https://stackoverflow.com/a/7071346/5843716