mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #28999 -- Added tests for reversing a class-based view by instance.
This commit is contained in:
committed by
Sarah Boyce
parent
35ab2e0182
commit
be138f32ed
@@ -8,6 +8,7 @@ from .views import (
|
||||
empty_view_partial,
|
||||
empty_view_wrapped,
|
||||
nested_view,
|
||||
view_func_from_cbv,
|
||||
)
|
||||
|
||||
other_patterns = [
|
||||
@@ -136,4 +137,6 @@ urlpatterns = [
|
||||
path("includes/", include(other_patterns)),
|
||||
# Security tests
|
||||
re_path("(.+)/security/$", empty_view, name="security"),
|
||||
# View function from cbv
|
||||
path("hello/<slug:name>/", view_func_from_cbv),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user