fix: format
This commit is contained in:
parent
54428d78d7
commit
fdcb6ca3d9
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue