Allow x in isbn path

This commit is contained in:
Mouse Reeve 2022-08-29 13:41:49 -07:00
parent 775ee6f590
commit 98562dc92f

View file

@ -581,7 +581,7 @@ urlpatterns = [
name="author-update-remote", name="author-update-remote",
), ),
# isbn # isbn
re_path(r"^isbn/(?P<isbn>\d+)(.json)?/?$", views.Isbn.as_view()), re_path(r"^isbn/(?P<isbn>[\dxX]+)(.json)?/?$", views.Isbn.as_view()),
# author # author
re_path( re_path(
r"^author/(?P<author_id>\d+)(.json)?/?$", views.Author.as_view(), name="author" r"^author/(?P<author_id>\d+)(.json)?/?$", views.Author.as_view(), name="author"