Skip to content

Commit

Permalink
Fix regex for template_id
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed Dec 19, 2023
1 parent adb6a44 commit 0c94acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cedar_metadata_templates/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

urlpatterns = [
re_path(r'^$', views.CedarMetadataTemplateList.as_view(), name=views.CedarMetadataTemplateList.view_name),
re_path(r'^(?P<template_id>[-0-9A-Za-z]+)/$', views.CedarMetadataTemplateDetail.as_view(), name=views.CedarMetadataTemplateDetail.view_name),
re_path(r'^(?P<template_id>[0-9A-Za-z]+)/$', views.CedarMetadataTemplateDetail.as_view(), name=views.CedarMetadataTemplateDetail.view_name),
]

0 comments on commit 0c94acc

Please sign in to comment.