2016-10-31 07:19:46 +00:00
|
|
|
from django.conf.urls import include, url
|
|
|
|
|
|
|
|
from stock.views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-11-08 17:14:41 +00:00
|
|
|
url(r'^(?P<stock_id>[0-9]+)$', StockMain.as_view(), name='main'),
|
|
|
|
url(r'^new/counter/(?P<counter_id>[0-9]+)$', StockCreateView.as_view(), name='new'),
|
2016-11-09 16:49:19 +00:00
|
|
|
url(r'^edit/(?P<stock_id>[0-9]+)$', StockEditView.as_view(), name='edit'),
|
|
|
|
url(r'^list$', StockListView.as_view(), name='list'),
|
2016-11-08 17:14:41 +00:00
|
|
|
url(r'^(?P<stock_id>[0-9]+)/newItem$', StockItemCreateView.as_view(), name='new_item'),
|
2016-10-31 07:19:46 +00:00
|
|
|
]
|