- changed status to resolved
How to add extra context?
Issue #55
invalid
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)
-
reporter -
reporter - changed status to invalid
This is not an issue, but misinterpretation of functionality
-
repo owner Glad you've sorted this out :)
- Log in to comment
Found the solution: Context needs to be provided from regular django view, not from the ajax call.