[Django]-Django class-based views: Invoking (forwarding to) a different class-based view

7👍

class CBViewA(View):
    def get(self, request, *args, **kwargs):
        if 'save_as_new' in request.GET:
            return AddView.as_view()(request, *args, **kwargs)

django run another class-based view (CBV) in a CBV?

👤ndpu

Leave a comment