Skip to content

Commit

Permalink
Migrate merchants models to the new app
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Sep 18, 2024
1 parent 2653812 commit c9c2df3
Show file tree
Hide file tree
Showing 124 changed files with 1,474 additions and 896 deletions.
3 changes: 1 addition & 2 deletions common/management/commands/data_creation/create_caisa.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from datetime import date, timedelta

from merchants.models import PaymentAccounting, PaymentMerchant, PaymentProduct
from opening_hours.models import OriginHaukiResource
from reservation_units.enums import (
AuthenticationType,
Expand All @@ -24,7 +23,7 @@
from reservations.models import ReservationMetadataSet
from spaces.models import Space, Unit
from tilavarauspalvelu.enums import TermsOfUseTypeChoices
from tilavarauspalvelu.models import TermsOfUse
from tilavarauspalvelu.models import PaymentAccounting, PaymentMerchant, PaymentProduct, TermsOfUse

from .utils import SetName, with_logs

Expand Down
2 changes: 1 addition & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
]

if settings.MOCK_VERKKOKAUPPA_API_ENABLED:
urlpatterns.append(path("mock_verkkokauppa/", include("merchants.mock_verkkokauppa_api.urls")))
urlpatterns.append(path("mock_verkkokauppa/", include("tilavarauspalvelu.api.mock_verkkokauppa_api.urls")))

if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Expand Down
9 changes: 0 additions & 9 deletions merchants/admin/__init__.py

This file was deleted.

42 changes: 0 additions & 42 deletions merchants/admin/payment_accounting.py

This file was deleted.

117 changes: 0 additions & 117 deletions merchants/admin/payment_merchant.py

This file was deleted.

126 changes: 0 additions & 126 deletions merchants/admin/payment_order.py

This file was deleted.

6 changes: 0 additions & 6 deletions merchants/apps.py

This file was deleted.

63 changes: 0 additions & 63 deletions merchants/enums.py

This file was deleted.

Loading

0 comments on commit c9c2df3

Please sign in to comment.