1👍
def get_context_data(self, request, **kwargs):
Try to change your function declaration to include request
parameter.
0👍
I’m not sure but this is probably caused by missing self
parameter in custom method (which is not static).
Change this:
def case_groups(date_1, date_2, process_group):
To this:
@staticmethod
def case_groups(date_1, date_2, process_group):
- [Answered ]-Render dynamic menu in every view
- [Answered ]-Cannot decode/encode in UTF-8
- [Answered ]-Django queryset: equivalent of SELECT all fields from two joined models
- [Answered ]-Django – filter two M2M fields to one model for specifis condition happening in single object
Source:stackexchange.com