"""Decorators for the django-shop application."""
""" Enables decorators for functions of classes (for example class based views).
Credits go to: http://www.toddreed.name/content/django-view-class/ """ return unbound_method(self, *a, **kw)
login_url=None): """ Decorator for views that checks that the user is logged in, redirecting to the log-in page if necessary.
Takes the `SHOP_FORCE_LOGIN` setting into consideration. """ get_test_func(), login_url=login_url, redirect_field_name=redirect_field_name ) return actual_decorator |