urls.py 1.66 KB
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
from django.conf.urls import url, include

from accounting.views import *

urlpatterns = [
Skia's avatar
Skia committed
6
7
8
9
    # Accounting types
    url(r'^type$', AccountingTypeListView.as_view(), name='type_list'),
    url(r'^type/create$', AccountingTypeCreateView.as_view(), name='type_new'),
    url(r'^type/(?P<type_id>[0-9]+)/edit$', AccountingTypeEditView.as_view(), name='type_edit'),
Skia's avatar
Skia committed
10
11
12
13
14
15
16
17
18
19
20
21
22
    # Bank accounts
    url(r'^$', BankAccountListView.as_view(), name='bank_list'),
    url(r'^bank/create$', BankAccountCreateView.as_view(), name='bank_new'),
    url(r'^bank/(?P<b_account_id>[0-9]+)$', BankAccountDetailView.as_view(), name='bank_details'),
    url(r'^bank/(?P<b_account_id>[0-9]+)/edit$', BankAccountEditView.as_view(), name='bank_edit'),
    url(r'^bank/(?P<b_account_id>[0-9]+)/delete$', BankAccountDeleteView.as_view(), name='bank_delete'),
    # Club accounts
    url(r'^club/create$', ClubAccountCreateView.as_view(), name='club_new'),
    url(r'^club/(?P<c_account_id>[0-9]+)$', ClubAccountDetailView.as_view(), name='club_details'),
    url(r'^club/(?P<c_account_id>[0-9]+)/edit$', ClubAccountEditView.as_view(), name='club_edit'),
    url(r'^club/(?P<c_account_id>[0-9]+)/delete$', ClubAccountDeleteView.as_view(), name='club_delete'),
    # Journals
    url(r'^journal/create$', JournalCreateView.as_view(), name='journal_new'),
Skia's avatar
Skia committed
23
24
25
26
27
    url(r'^journal/(?P<j_id>[0-9]+)$', JournalDetailView.as_view(), name='journal_details'),
    url(r'^journal/(?P<j_id>[0-9]+)/edit$', JournalEditView.as_view(), name='journal_edit'),
    # Operations
    url(r'^operation/create$', OperationCreateView.as_view(), name='op_new'),
    url(r'^operation/(?P<op_id>[0-9]+)$', OperationEditView.as_view(), name='op_edit'),
Skia's avatar
Skia committed
28
29
30
]