From 116aa6b8b5f998daa481130c4d9b42b5baeb3ee0 Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 25 Apr 2017 09:45:13 +0200 Subject: [PATCH] Update stock URLs --- stock/urls.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stock/urls.py b/stock/urls.py index cf5c4677..cbc96eab 100644 --- a/stock/urls.py +++ b/stock/urls.py @@ -10,21 +10,21 @@ urlpatterns = [ # StockItem urls url(r'^(?P[0-9]+)$', StockItemList.as_view(), name='items_list'), - url(r'^(?P[0-9]+)/stockItem/newItem$', StockItemCreateView.as_view(), name='new_item'), - url(r'^stockItem/(?P[0-9]+)/edit$', StockItemEditView.as_view(), name='edit_item'), - url(r'^(?P[0-9]+)/stockItem/takeItems$', StockTakeItemsBaseFormView.as_view(), name='take_items'), + url(r'^(?P[0-9]+)/stock_item/new_item$', StockItemCreateView.as_view(), name='new_item'), + url(r'^stock_item/(?P[0-9]+)/edit$', StockItemEditView.as_view(), name='edit_item'), + url(r'^(?P[0-9]+)/stock_item/take_items$', StockTakeItemsBaseFormView.as_view(), name='take_items'), # ShoppingList urls - url(r'^(?P[0-9]+)/shoppingList/list$', StockShoppingListView.as_view(), name='shoppinglist_list'), - url(r'^(?P[0-9]+)/shoppingList/create$', StockItemQuantityBaseFormView.as_view(), name='shoppinglist_create'), - url(r'^(?P[0-9]+)/shoppingList/(?P[0-9]+)/items$', StockShoppingListItemListView.as_view(), + url(r'^(?P[0-9]+)/shopping_list/list$', StockShoppingListView.as_view(), name='shoppinglist_list'), + url(r'^(?P[0-9]+)/shopping_list/create$', StockItemQuantityBaseFormView.as_view(), name='shoppinglist_create'), + url(r'^(?P[0-9]+)/shopping_list/(?P[0-9]+)/items$', StockShoppingListItemListView.as_view(), name='shoppinglist_items'), - url(r'^(?P[0-9]+)/shoppingList/(?P[0-9]+)/delete$', StockShoppingListDeleteView.as_view(), + url(r'^(?P[0-9]+)/shopping_list/(?P[0-9]+)/delete$', StockShoppingListDeleteView.as_view(), name='shoppinglist_delete'), - url(r'^(?P[0-9]+)/shoppingList/(?P[0-9]+)/setDone$', StockShopppingListSetDone.as_view(), + url(r'^(?P[0-9]+)/shopping_list/(?P[0-9]+)/set_done$', StockShopppingListSetDone.as_view(), name='shoppinglist_set_done'), - url(r'^(?P[0-9]+)/shoppingList/(?P[0-9]+)/setTodo$', StockShopppingListSetTodo.as_view(), + url(r'^(?P[0-9]+)/shopping_list/(?P[0-9]+)/set_todo$', StockShopppingListSetTodo.as_view(), name='shoppinglist_set_todo'), - url(r'^(?P[0-9]+)/shoppingList/(?P[0-9]+)/updateStock$', StockUpdateAfterShopppingBaseFormView.as_view(), + url(r'^(?P[0-9]+)/shopping_list/(?P[0-9]+)/update_stock$', StockUpdateAfterShopppingBaseFormView.as_view(), name='update_after_shopping'), ]