bornhack-website/src/backoffice/urls.py
Thomas Steen Rasmussen 00af109e2f
add flake8 and isort to pre-commit config, make flake8 and isort happy (#441)
* add flake8 to pre-commit config, and fixup many things to make flake8 happy

* add isort and sort all imports, add to pre-commit and requirements
2020-02-12 13:10:41 +01:00

191 lines
6.7 KiB
Python

from django.urls import include, path
from .views import (
ApproveNamesView,
BackofficeIndexView,
BadgeHandoutView,
ChainDetailView,
ChainListView,
CredebtorDetailView,
EventProposalManageView,
ExpenseDetailView,
ExpenseListView,
ManageProposalsView,
MerchandiseOrdersView,
MerchandiseToOrderView,
ProductHandoutView,
ReimbursementCreateUserSelectView,
ReimbursementCreateView,
ReimbursementDeleteView,
ReimbursementDetailView,
ReimbursementListView,
ReimbursementUpdateView,
RevenueDetailView,
RevenueListView,
ScanTicketsView,
ShopTicketOverview,
SpeakerProposalManageView,
TicketCheckinView,
VillageOrdersView,
VillageToOrderView,
)
app_name = "backoffice"
urlpatterns = [
path("", BackofficeIndexView.as_view(), name="index"),
# infodesk
path(
"infodesk/",
include([path("", ScanTicketsView.as_view(), name="scan_tickets")]),
),
path("shop_tickets/", ShopTicketOverview.as_view(), name="shop_ticket_overview"),
path("product_handout/", ProductHandoutView.as_view(), name="product_handout"),
path("badge_handout/", BadgeHandoutView.as_view(), name="badge_handout"),
path("ticket_checkin/", TicketCheckinView.as_view(), name="ticket_checkin"),
# public names
path(
"public_credit_names/", ApproveNamesView.as_view(), name="public_credit_names"
),
# merchandise orders
path(
"merchandise_orders/",
MerchandiseOrdersView.as_view(),
name="merchandise_orders",
),
path(
"merchandise_to_order/",
MerchandiseToOrderView.as_view(),
name="merchandise_to_order",
),
# village orders
path("village_orders/", VillageOrdersView.as_view(), name="village_orders"),
path("village_to_order/", VillageToOrderView.as_view(), name="village_to_order"),
# manage proposals
path(
"manage_proposals/",
include(
[
path("", ManageProposalsView.as_view(), name="manage_proposals"),
path(
"speakers/<uuid:pk>/",
SpeakerProposalManageView.as_view(),
name="speakerproposal_manage",
),
path(
"events/<uuid:pk>/",
EventProposalManageView.as_view(),
name="eventproposal_manage",
),
]
),
),
# economy
path(
"economy/",
include(
[
# chains & credebtors
path(
"chains/",
include(
[
path("", ChainListView.as_view(), name="chain_list"),
path(
"<slug:chain_slug>/",
include(
[
path(
"",
ChainDetailView.as_view(),
name="chain_detail",
),
path(
"<slug:credebtor_slug>/",
CredebtorDetailView.as_view(),
name="credebtor_detail",
),
]
),
),
]
),
),
# expenses
path(
"expenses/",
include(
[
path("", ExpenseListView.as_view(), name="expense_list"),
path(
"<uuid:pk>/",
ExpenseDetailView.as_view(),
name="expense_detail",
),
]
),
),
# revenues
path(
"revenues/",
include(
[
path("", RevenueListView.as_view(), name="revenue_list"),
path(
"<uuid:pk>/",
RevenueDetailView.as_view(),
name="revenue_detail",
),
]
),
),
# reimbursements
path(
"reimbursements/",
include(
[
path(
"",
ReimbursementListView.as_view(),
name="reimbursement_list",
),
path(
"<uuid:pk>/",
include(
[
path(
"",
ReimbursementDetailView.as_view(),
name="reimbursement_detail",
),
path(
"update/",
ReimbursementUpdateView.as_view(),
name="reimbursement_update",
),
path(
"delete/",
ReimbursementDeleteView.as_view(),
name="reimbursement_delete",
),
]
),
),
path(
"create/",
ReimbursementCreateUserSelectView.as_view(),
name="reimbursement_create_userselect",
),
path(
"create/<int:user_id>/",
ReimbursementCreateView.as_view(),
name="reimbursement_create",
),
]
),
),
]
),
),
]