1👍
def get_initial_queryset(self):
return MyModel.objects.filter(name="example")
Add this in your Class OrderListJson
0👍
You can use the get_initial_queryset method that returns the queryset used to populate the datatable.
Source:stackexchange.com