diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-10-20 09:14:48 +0200 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2020-10-22 14:15:19 +0200 |
| commit | ad11f5b8c9cbfdb763e08c83170694abc0c5fc1e (patch) | |
| tree | 28647127cf0bc05120bee7417609ec997a5b1f96 /tests/middleware/urls.py | |
| parent | 34180922380cf41cd684f846ecf00f92eb289bcf (diff) | |
Fixed #32124 -- Added per-view opt-out for APPEND_SLASH behavior.
Diffstat (limited to 'tests/middleware/urls.py')
| -rw-r--r-- | tests/middleware/urls.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/middleware/urls.py b/tests/middleware/urls.py index 8411d87b5a..e76f4ac771 100644 --- a/tests/middleware/urls.py +++ b/tests/middleware/urls.py @@ -8,4 +8,7 @@ urlpatterns = [ path('needsquoting#/', views.empty_view), # Accepts paths with two leading slashes. re_path(r'^(.+)/security/$', views.empty_view), + # Should not append slash. + path('sensitive_fbv/', views.sensitive_fbv), + path('sensitive_cbv/', views.SensitiveCBV.as_view()), ] |
