You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
418 B
Python
13 lines
418 B
Python
from billing.models import *
|
|
from osinacore.models import *
|
|
|
|
def utilities(request):
|
|
active_subscriptions = None
|
|
if request.user.is_authenticated and CustomerProfile.objects.filter(user=request.user):
|
|
customer = request.user.customerprofile
|
|
active_subscriptions = OrderItem.objects.filter(active=True, order__customer=customer)
|
|
|
|
|
|
|
|
return {'active_subscriptions': active_subscriptions,}
|