How to add extra context?

Issue #55 invalid
Davy Jacops (bitbucket@swingit.be) created an issue

How can an extra context variable from the view be made visible to the template?

These approaches do not seem to work: * https://docs.djangoproject.com/en/2.1/ref/class-based-views/mixins-single-object/#django.views.generic.detail.SingleObjectMixin.get_context_data * https://reinout.vanrees.org/weblog/2014/05/19/context.html

Is there a conflict between django-datatables-view DatatableMixin get_context_data() and the same function in django's generic CBV?

Comments (3)

  1. Davy Jacops (bitbucket@swingit.be) reporter

    Found the solution: Context needs to be provided from regular django view, not from the ajax call.

  2. Log in to comment