I have a MySQL query that I need help converting to Django
select * from TABLE where ID=10 group by LOCATION order by DATE DESC
Thus far I have TABLE.objects.filter(id='10').order_by('-date') but I am unsure how to do the group by in Django.
Aucun commentaire:
Enregistrer un commentaire