summaryrefslogtreecommitdiff
path: root/tests/urlpatterns_reverse/method_view_urls.py
blob: 39c53433c8aa79531a32011d1eed34dd2700d6c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.urls import path


class ViewContainer:
    def method_view(self, request):
        pass

    @classmethod
    def classmethod_view(cls, request):
        pass


view_container = ViewContainer()


urlpatterns = [
    path('', view_container.method_view, name='instance-method-url'),
    path('', ViewContainer.classmethod_view, name='instance-method-url'),
]