mirror of
https://github.com/pretix/pretix.git
synced 2026-05-18 17:24:03 +00:00
Move datasync view to views/datasync.py
This commit is contained in:
@@ -38,7 +38,7 @@ from pretix.base.datasync.sourcefields import (
|
|||||||
EVENT, EVENT_OR_SUBEVENT, ORDER, ORDER_POSITION, get_data_fields,
|
EVENT, EVENT_OR_SUBEVENT, ORDER, ORDER_POSITION, get_data_fields,
|
||||||
)
|
)
|
||||||
from pretix.base.logentrytype_registry import make_link
|
from pretix.base.logentrytype_registry import make_link
|
||||||
from pretix.base.models.datasync import OrderSyncResult, OrderSyncQueue
|
from pretix.base.models.datasync import OrderSyncQueue, OrderSyncResult
|
||||||
from pretix.base.signals import EventPluginRegistry, periodic_task
|
from pretix.base.signals import EventPluginRegistry, periodic_task
|
||||||
from pretix.celery_app import app
|
from pretix.celery_app import app
|
||||||
|
|
||||||
|
|||||||
@@ -42,4 +42,4 @@ class PretixControlConfig(AppConfig):
|
|||||||
def ready(self):
|
def ready(self):
|
||||||
from .views import dashboards # noqa
|
from .views import dashboards # noqa
|
||||||
from . import logdisplay # noqa
|
from . import logdisplay # noqa
|
||||||
from . import datasync # noqa
|
from .views import datasync # noqa
|
||||||
|
|||||||
@@ -36,11 +36,10 @@
|
|||||||
from django.urls import include, re_path
|
from django.urls import include, re_path
|
||||||
from django.views.generic.base import RedirectView
|
from django.views.generic.base import RedirectView
|
||||||
|
|
||||||
from pretix.control.datasync import ControlSyncJob
|
|
||||||
from pretix.control.views import (
|
from pretix.control.views import (
|
||||||
auth, checkin, dashboards, discounts, event, geo, global_settings, item,
|
auth, checkin, dashboards, datasync, discounts, event, geo,
|
||||||
main, modelimport, oauth, orders, organizer, pdf, search, shredder,
|
global_settings, item, main, modelimport, oauth, orders, organizer, pdf,
|
||||||
subevents, typeahead, user, users, vouchers, waitinglist,
|
search, shredder, subevents, typeahead, user, users, vouchers, waitinglist,
|
||||||
)
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
@@ -429,7 +428,7 @@ urlpatterns = [
|
|||||||
re_path(r'^orders/(?P<code>[0-9A-Z]+)/cancellationrequests/(?P<req>\d+)/delete$',
|
re_path(r'^orders/(?P<code>[0-9A-Z]+)/cancellationrequests/(?P<req>\d+)/delete$',
|
||||||
orders.OrderCancellationRequestDelete.as_view(),
|
orders.OrderCancellationRequestDelete.as_view(),
|
||||||
name='event.order.cancellationrequests.delete'),
|
name='event.order.cancellationrequests.delete'),
|
||||||
re_path(r'^orders/(?P<code>[0-9A-Z]+)/sync_job/(?P<provider>[^/]+)/$', ControlSyncJob.as_view(),
|
re_path(r'^orders/(?P<code>[0-9A-Z]+)/sync_job/(?P<provider>[^/]+)/$', datasync.ControlSyncJob.as_view(),
|
||||||
name='event.order.sync_job'),
|
name='event.order.sync_job'),
|
||||||
re_path(r'^orders/(?P<code>[0-9A-Z]+)/transactions/$', orders.OrderTransactions.as_view(), name='event.order.transactions'),
|
re_path(r'^orders/(?P<code>[0-9A-Z]+)/transactions/$', orders.OrderTransactions.as_view(), name='event.order.transactions'),
|
||||||
re_path(r'^orders/(?P<code>[0-9A-Z]+)/$', orders.OrderDetail.as_view(), name='event.order'),
|
re_path(r'^orders/(?P<code>[0-9A-Z]+)/$', orders.OrderDetail.as_view(), name='event.order'),
|
||||||
|
|||||||
Reference in New Issue
Block a user