I want to get the number of "chats" between 2 users in my app and I have a table called "Message" that contains:
sender_user | reciever_user | contain | date
I want to do a query that gives me all the messages between 2 differents users, I know in SQL I need to use GROUP BY but how can I get the list of messages with the Django ORM? Do you have any idea?
NOTE: sender_user and reciever_user are instances of User table)