InvenTree/InvenTree/stock/urls.py

16 lines
447 B
Python
Raw Normal View History

2017-03-27 10:04:15 +00:00
from django.conf.urls import url
from . import views
urlpatterns = [
2017-04-11 08:58:44 +00:00
# List all stock quantities for a given part
url(r'^part/(?P<part>[0-9]+)$', views.PartStockDetail.as_view()),
# List all stock items in a given location
url(r'^location/(?P<pk>[0-9]+)$', views.LocationDetail.as_view()),
# List all top-level locations
2017-04-13 22:52:25 +00:00
url(r'^location/$', views.LocationList.as_view()),
url(r'^$', views.LocationList.as_view())
2017-03-28 12:25:38 +00:00
]