This commit is contained in:
Oliver Walters 2019-06-24 00:01:34 +10:00
parent 881adb9487
commit faf2fd408f
2 changed files with 3 additions and 3 deletions

View File

@ -336,7 +336,7 @@ part_api_urls = [
url(r'^category/', include(cat_api_urls)),
url(r'^star/', include(part_star_api_urls)),
url(r'^(?P<pk>\d+)/', PartDetail.as_view(), name='api-part-detail'),
url(r'^(?P<pk>\d+)/?', PartDetail.as_view(), name='api-part-detail'),
url(r'^.*$', PartList.as_view(), name='api-part-list'),
]
@ -344,7 +344,7 @@ part_api_urls = [
bom_api_urls = [
# BOM Item Detail
url('^(?P<pk>\d+)/', BomDetail.as_view(), name='api-bom-detail'),
url(r'^(?P<pk>\d+)/?', BomDetail.as_view(), name='api-bom-detail'),
# Catch-all
url(r'^.*$', BomList.as_view(), name='api-bom-list'),

View File

@ -3,7 +3,7 @@ ignore =
# - W293 - blank lines contain whitespace
W293,
# - E501 - line too long (82 characters)
E501,
E501, E722
# - C901 - function is too complex
C901,
exclude = .git,__pycache__,*/migrations/*