def get_context_data(self, **kwargs): context = super(FormView, self).get_context_data(**kwargs) context['layout'] = self.get_layout() return context