From b0c4a58f3002f2f0971c6b254af443773b965d4e Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 20 Jul 2021 15:06:09 +1000 Subject: [PATCH] Fix URL patterns for ManufacturerPart and SupplierPart --- InvenTree/company/urls.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/InvenTree/company/urls.py b/InvenTree/company/urls.py index 901e7f7089..609311bcba 100644 --- a/InvenTree/company/urls.py +++ b/InvenTree/company/urls.py @@ -30,11 +30,9 @@ company_urls = [ manufacturer_part_urls = [ - url(r'^(?P\d+)/', include([ - url('^.*$', views.ManufacturerPartDetail.as_view(template_name='company/manufacturer_part.html'), name='manufacturer-part-detail'), - ])), + url(r'^(?P\d+)/', views.ManufacturerPartDetail.as_view(template_name='company/manufacturer_part.html'), name='manufacturer-part-detail'), ] supplier_part_urls = [ - url('^.*$', views.SupplierPartDetail.as_view(template_name='company/supplier_part.html'), name='supplier-part-detail'), + url(r'^(?P\d+)/', views.SupplierPartDetail.as_view(template_name='company/supplier_part.html'), name='supplier-part-detail'), ]