mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-06 20:11:37 +00:00
Moved IPN url pattern to right before Part index to avoid catching others
This commit is contained in:
@@ -101,8 +101,6 @@ part_urls = [
|
|||||||
|
|
||||||
# Individual part using pk
|
# Individual part using pk
|
||||||
url(r'^(?P<pk>\d+)/', include(part_detail_urls)),
|
url(r'^(?P<pk>\d+)/', include(part_detail_urls)),
|
||||||
# Individual part using IPN as slug
|
|
||||||
url(r'^(?P<slug>[-\w]+)/', views.PartDetailFromIPN.as_view(), name='part-detail-from-ipn'),
|
|
||||||
|
|
||||||
# Part category
|
# Part category
|
||||||
url(r'^category/(?P<pk>\d+)/', include(part_category_urls)),
|
url(r'^category/(?P<pk>\d+)/', include(part_category_urls)),
|
||||||
@@ -126,6 +124,9 @@ part_urls = [
|
|||||||
# Bom Items
|
# Bom Items
|
||||||
url(r'^bom/(?P<pk>\d+)/', include(part_bom_urls)),
|
url(r'^bom/(?P<pk>\d+)/', include(part_bom_urls)),
|
||||||
|
|
||||||
|
# Individual part using IPN as slug
|
||||||
|
url(r'^(?P<slug>[-\w]+)/', views.PartDetailFromIPN.as_view(), name='part-detail-from-ipn'),
|
||||||
|
|
||||||
# Top level part list (display top level parts and categories)
|
# Top level part list (display top level parts and categories)
|
||||||
url(r'^.*$', views.PartIndex.as_view(), name='part-index'),
|
url(r'^.*$', views.PartIndex.as_view(), name='part-index'),
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user