1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #28999 -- Added tests for reversing a class-based view by instance.

This commit is contained in:
Clifford Gama
2024-10-17 17:59:58 +02:00
committed by Sarah Boyce
parent 35ab2e0182
commit be138f32ed
3 changed files with 20 additions and 1 deletions

View File

@@ -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),
]