Order by and distinct at same time in Django
What is this article about?
We can use order by and distinct at same time in Django but left most argument in order by should be matched with the argument passed in distinct.
ex :- filter.order_by(‘column1’, ‘column2’).distinct(‘column1’).values()