1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #31459 -- Fixed handling invalid indentifiers in URL path conversion.

This patch adjusted existing tests that used invalid identifiers.
This commit is contained in:
Adam Johnson
2020-04-13 09:07:28 +01:00
committed by Mariusz Felisiak
parent 578c03b276
commit 4bb33bb074
5 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
from django.urls import path
urlpatterns = [
path(r'(?P<named-group>\d+)', lambda x: x),
path(r'(?P<named_group>\d+)', lambda x: x),
]