Skip to content

Commit d9e2cb7

Browse files
committed
Remove .as_view() usage
1 parent 44d9828 commit d9e2cb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get(self):
2222

2323

2424
urlpatterns = [
25-
path("json/", ExampleJsonView.as_view()),
26-
path("text/", ExamplePlaintextView.as_view()),
27-
path("", ExampleTemplateView.as_view()),
25+
path("json/", ExampleJsonView),
26+
path("text/", ExamplePlaintextView),
27+
path("", ExampleTemplateView),
2828
]

0 commit comments

Comments
 (0)