1👍
See the docs for the correct usage, as_view
returns a callable
class MyListView(ListView):
model = Entry
def post(self, request, *args, **kwargs):
return MyUpdateView.as_view()(request)
Source:stackexchange.com
1👍
See the docs for the correct usage, as_view
returns a callable
class MyListView(ListView):
model = Entry
def post(self, request, *args, **kwargs):
return MyUpdateView.as_view()(request)