mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Updated test URL patterns to use path() and re_path().
This commit is contained in:
parent
1136d57f01
commit
043bd70942
104 changed files with 692 additions and 673 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
|
||||
from .views import ArticleFormView
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^model_form/(?P<pk>[0-9]+)/$', ArticleFormView.as_view(), name="article_form"),
|
||||
path('model_form/<int:pk>/', ArticleFormView.as_view(), name='article_form'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue