diff --git a/src/bornhack/settings.py b/src/bornhack/settings.py index 1a50cd88..1fa0e4f8 100644 --- a/src/bornhack/settings.py +++ b/src/bornhack/settings.py @@ -78,7 +78,6 @@ TEMPLATES = [ 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'shop.context_processors.current_order', - 'shop.context_processors.user_has_tickets', 'camps.context_processors.camp', ], }, diff --git a/src/shop/context_processors.py b/src/shop/context_processors.py index ffcab6d7..676e42b5 100644 --- a/src/shop/context_processors.py +++ b/src/shop/context_processors.py @@ -13,11 +13,3 @@ def current_order(request): return {} -def user_has_tickets(request): - has_tickets = False - if hasattr(request.user, 'orders') and request.user.orders.filter( - tickets__product__category__name=settings.TICKET_CATEGORY_NAME - ).exists(): - has_tickets = True - return {'has_tickets': has_tickets} -