def _get_view_data(self, context_data):
view = context_data.get('<STR_LIT>')<EOL>if not isinstance(view, View):<EOL><INDENT>view = None<EOL><DEDENT>template_context = []<EOL>for key, obj in context_data.items():<EOL><INDENT>if isinstance(obj, (BaseForm, BaseFormSet, Model)):<EOL><INDENT>template_context.append((key, _format_path(obj.__class__)))<EOL><DEDENT><DEDENT>return {<EOL>'<STR_LIT>': _get_view_model(view),<EOL>'<STR_LIT>': _get_form_class(view),<EOL>'<STR_LIT>': template_context,<EOL>}<EOL>
Extract the used view from the TemplateResponse context (ContextMixin)