2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-11 07:24:15 +00:00

Added views for part and part category

- Worked out simple linking
- Category path displaying correctly
- Category page lists parts in category
This commit is contained in:
Oliver Walters
2017-03-26 10:06:00 +11:00
parent ffb9132de2
commit ddd927c436
5 changed files with 56 additions and 3 deletions

View File

@ -3,5 +3,10 @@ from django.conf.urls import url
from . import views
urlpatterns = [
# Display part detail
url(r'^(?P<part_id>[0-9]+)/$', views.partdetail, name='detail'),
# Display a part category
url(r'^category/(?P<category_id>[0-9]+)/$', views.category, name='category'),
url(r'^$', views.index, name='index')
]