I have a class QuestionView which is derived from the FormView class. Here is a code snippet to explain my problem:
QuestionView
FormView
class QuestionV
Maybe you can use this approach:
class SomeView(View): def post(self, request): my_form = MyForm(request.POST) if my_form.is_valid(): context['foo'] = 'bar' return render(request, 'valid/path.html', context)