chore: format
This commit is contained in:
parent
cf329e5046
commit
9011e579df
|
|
@ -10,9 +10,6 @@ from django.views import defaults as default_views
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
from django_ratelimit.exceptions import Ratelimited
|
from django_ratelimit.exceptions import Ratelimited
|
||||||
from graphene_django.views import GraphQLView
|
from graphene_django.views import GraphQLView
|
||||||
from wagtail import urls as wagtail_urls
|
|
||||||
from wagtail.admin import urls as wagtailadmin_urls
|
|
||||||
from wagtail.documents import urls as wagtaildocs_urls
|
|
||||||
|
|
||||||
from vbv_lernwelt.api.directory import list_entities
|
from vbv_lernwelt.api.directory import list_entities
|
||||||
from vbv_lernwelt.api.user import me_user_view
|
from vbv_lernwelt.api.user import me_user_view
|
||||||
|
|
@ -59,11 +56,14 @@ from vbv_lernwelt.importer.views import (
|
||||||
)
|
)
|
||||||
from vbv_lernwelt.notify.views import email_notification_settings
|
from vbv_lernwelt.notify.views import email_notification_settings
|
||||||
from vbv_lernwelt.shop.views import (
|
from vbv_lernwelt.shop.views import (
|
||||||
get_billing_address,
|
|
||||||
update_billing_address,
|
|
||||||
checkout_vv,
|
checkout_vv,
|
||||||
|
get_billing_address,
|
||||||
transaction_webhook,
|
transaction_webhook,
|
||||||
|
update_billing_address,
|
||||||
)
|
)
|
||||||
|
from wagtail import urls as wagtail_urls
|
||||||
|
from wagtail.admin import urls as wagtailadmin_urls
|
||||||
|
from wagtail.documents import urls as wagtaildocs_urls
|
||||||
|
|
||||||
|
|
||||||
class SignedIntConverter(IntConverter):
|
class SignedIntConverter(IntConverter):
|
||||||
|
|
|
||||||
|
|
@ -4,20 +4,19 @@ from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('shop', '0003_auto_20231114_2036'),
|
("shop", "0003_auto_20231114_2036"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.RenameField(
|
migrations.RenameField(
|
||||||
model_name='checkoutinformation',
|
model_name="checkoutinformation",
|
||||||
old_name='street_address',
|
old_name="street_address",
|
||||||
new_name='street',
|
new_name="street",
|
||||||
),
|
),
|
||||||
migrations.RenameField(
|
migrations.RenameField(
|
||||||
model_name='checkoutinformation',
|
model_name="checkoutinformation",
|
||||||
old_name='street_number_address',
|
old_name="street_number_address",
|
||||||
new_name='street_number',
|
new_name="street_number",
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -4,20 +4,19 @@ from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('shop', '0004_auto_20231116_1336'),
|
("shop", "0004_auto_20231116_1336"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.RenameField(
|
migrations.RenameField(
|
||||||
model_name='checkoutinformation',
|
model_name="checkoutinformation",
|
||||||
old_name='company_street_address',
|
old_name="company_street_address",
|
||||||
new_name='company_street',
|
new_name="company_street",
|
||||||
),
|
),
|
||||||
migrations.RenameField(
|
migrations.RenameField(
|
||||||
model_name='checkoutinformation',
|
model_name="checkoutinformation",
|
||||||
old_name='company_street_number_address',
|
old_name="company_street_number_address",
|
||||||
new_name='company_street_number',
|
new_name="company_street_number",
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,23 @@ from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('shop', '0005_auto_20231116_1338'),
|
("shop", "0005_auto_20231116_1338"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='checkoutinformation',
|
model_name="checkoutinformation",
|
||||||
name='state',
|
name="state",
|
||||||
field=models.CharField(choices=[('initialized', 'Initialized'), ('settled', 'Settled'), ('transmitted', 'Transmitted'), ('canceled', 'Canceled'), ('failed', 'Failed')], max_length=50),
|
field=models.CharField(
|
||||||
|
choices=[
|
||||||
|
("initialized", "Initialized"),
|
||||||
|
("settled", "Settled"),
|
||||||
|
("transmitted", "Transmitted"),
|
||||||
|
("canceled", "Canceled"),
|
||||||
|
("failed", "Failed"),
|
||||||
|
],
|
||||||
|
max_length=50,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,14 @@ from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('shop', '0006_alter_checkoutinformation_state'),
|
("shop", "0006_alter_checkoutinformation_state"),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='checkoutinformation',
|
model_name="checkoutinformation",
|
||||||
name='webhook_history',
|
name="webhook_history",
|
||||||
field=models.JSONField(default=list),
|
field=models.JSONField(default=list),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import hashlib
|
||||||
import hmac
|
import hmac
|
||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
from abc import abstractmethod, ABC
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import structlog
|
import structlog
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ from rest_framework.response import Response
|
||||||
|
|
||||||
from vbv_lernwelt.shop.models import (
|
from vbv_lernwelt.shop.models import (
|
||||||
BillingAddress,
|
BillingAddress,
|
||||||
Product,
|
|
||||||
CheckoutInformation,
|
CheckoutInformation,
|
||||||
VV_PRODUCT_SKU,
|
|
||||||
CheckoutState,
|
CheckoutState,
|
||||||
|
Product,
|
||||||
|
VV_PRODUCT_SKU,
|
||||||
)
|
)
|
||||||
from vbv_lernwelt.shop.serializers import BillingAddressSerializer
|
from vbv_lernwelt.shop.serializers import BillingAddressSerializer
|
||||||
from vbv_lernwelt.shop.services import DataTransPaymentProvider
|
from vbv_lernwelt.shop.services import DataTransPaymentProvider
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue