Moved IPN url pattern to right before Part index to avoid catching others

This commit is contained in:
eeintech 2020-09-05 12:03:07 -05:00
parent 8198e919b1
commit 41071f0ed4

View File

@ -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'),
] ]