I have a model with the following fields
id -> int
vivitor_id -> int
branch_id -> int
date -> datetime
I need to perform the following query in Django. How to do this using Django ORM.
select branch_id from report group by branch_id order by max(date) desc ;