my subscriptions page 16
This commit is contained in:
@@ -677,10 +677,11 @@ class ActiveSubscriptionView(TemplateView):
|
||||
latest_subscription = PrincipalSubscription.objects.filter(
|
||||
principal=request.user,
|
||||
is_paid=True,
|
||||
deleted=False,
|
||||
end_date__gte=today,
|
||||
).order_by('-end_date').last()
|
||||
|
||||
if latest_subscription:
|
||||
if not latest_subscription:
|
||||
return HttpResponseRedirect(reverse("manage_subscriptions:stripe"))
|
||||
return super().get(request, *args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user