Coverage for /home/tribaal/workspace/django-shop/shop/util/decorators : 83.33%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""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 |