[Answer]-Django-datatables-view load filtered model

1👍

def get_initial_queryset(self):
     return MyModel.objects.filter(name="example")

Add this in your Class OrderListJson

👤webDev

0👍

You can use the get_initial_queryset method that returns the queryset used to populate the datatable.

Leave a comment