fix: format

This commit is contained in:
Livio Bieri 2023-11-17 16:13:15 +01:00 committed by Christian Cueni
parent 54428d78d7
commit fdcb6ca3d9
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from vbv_lernwelt.core.admin import User
from vbv_lernwelt.course.models import CourseSessionUser, CourseSession
from vbv_lernwelt.course.models import CourseSession, CourseSessionUser
from vbv_lernwelt.shop.models import (
BillingAddress,
CheckoutInformation,
@ -124,7 +124,7 @@ def checkout_vv(request):
if checkouts.filter(
state__in=[CheckoutState.SETTLED, CheckoutState.TRANSMITTED]
).exists():
return JsonResponse({"next_step_url": checkout_success_url()})
return JsonResponse({"next_step_url": "/"})
# already initialized -> redirect to payment page again
if checkout := checkouts.filter(state=CheckoutState.INITIALIZED).first():