Last Updated: February 25, 2016
·
1.121K
· voiddragon

Django Overriding Context Data in Class Based Views

def get_context_data(self, **kwargs):
    form = self.get_form(self.form_class)
    context = {'form': form}
    context.update(kwargs)
    return super(ProjectListView, self).get_context_data(**context)