title: How to select only one row for one user in django?
body: <p>I have a message database and it has senderid, receiverid, message and date. Now I would like to get list of users whom I have recently messaged with one latest message (sent or received) per person. How can I get just a single row of message per person.</p>
  
  <p>I tried but this game me all the messages between two users, I just want the latest message.</p>
  
  <pre><code>querySet=MessageModel.objects.filter(
              Q(sUser=self.request.user) |     
              Q(rUser=self.request.user)
          )
          return querySet
  </code></pre>
  
  <p>but this game me all the messages between two users, I just want the latest message.</p>