bornhack-website/src/economy/urls.py
Thomas Steen Rasmussen a057bd6464
Revenue and economy revamp (#285)
* rework economy stuff, add revenue model, unfinished code!

* part 2 of economy overhaul. add views for dealing with revenue. rework expense views.
2018-11-20 17:12:32 +01:00

115 lines
2.9 KiB
Python

from django.urls import path, include
from .views import *
app_name = 'economy'
urlpatterns = [
path(
'',
EconomyDashboardView.as_view(),
name='dashboard'
),
# expenses
path(
'expenses/',
include([
path(
'',
ExpenseListView.as_view(),
name='expense_list'
),
path(
'add/',
ExpenseCreateView.as_view(),
name='expense_create'
),
path(
'<uuid:pk>/',
include([
path(
'',
ExpenseDetailView.as_view(),
name='expense_detail'
),
path(
'update/',
ExpenseUpdateView.as_view(),
name='expense_update'
),
path(
'delete/',
ExpenseDeleteView.as_view(),
name='expense_delete'
),
path(
'invoice/',
ExpenseInvoiceView.as_view(),
name='expense_invoice'
),
]),
),
]),
),
# reimbursements
path(
'reimbursements/',
include([
path(
'',
ReimbursementListView.as_view(),
name='reimbursement_list'
),
path(
'<uuid:pk>/',
ReimbursementDetailView.as_view(),
name='reimbursement_detail'
),
]),
),
# revenue
path(
'revenues/',
include([
path(
'',
RevenueListView.as_view(),
name='revenue_list'
),
path(
'add/',
RevenueCreateView.as_view(),
name='revenue_create'
),
path(
'<uuid:pk>/',
include([
path(
'',
RevenueDetailView.as_view(),
name='revenue_detail'
),
path(
'update/',
RevenueUpdateView.as_view(),
name='revenue_update'
),
path(
'delete/',
RevenueDeleteView.as_view(),
name='revenue_delete'
),
path(
'invoice/',
RevenueInvoiceView.as_view(),
name='revenue_invoice'
),
]),
),
]),
),
]