def get_context_data(self, **kwargs):
sEcho = self.query_data["<STR_LIT>"]<EOL>context = super(BaseListView, self).get_context_data(**kwargs)<EOL>queryset = context["<STR_LIT>"]<EOL>if queryset is not None:<EOL><INDENT>total_length = self.get_queryset_length(queryset)<EOL>queryset = self.filter_queryset(queryset)<EOL>display_length = self.get_queryset_length(queryset)<EOL>queryset = self.sort_queryset(queryset)<EOL>queryset = self.paging_queryset(queryset)<EOL>values_list = self.convert_queryset_to_values_list(queryset)<EOL>context = {<EOL>"<STR_LIT>": sEcho,<EOL>"<STR_LIT>": total_length,<EOL>"<STR_LIT>": display_length,<EOL>"<STR_LIT>": values_list,<EOL>}<EOL><DEDENT>else:<EOL><INDENT>context = {<EOL>"<STR_LIT>": sEcho,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": <NUM_LIT:0>,<EOL>"<STR_LIT>": [],<EOL>}<EOL><DEDENT>return context<EOL>
Get context data for datatable server-side response.
See http://www.datatables.net/usage/server-side