I'm trying to do like this:
Class conversation(models.Model):
user1, user2 =; # this is from User table
messages = List(Message) # where Message is also a model
Class Message(models.Model):
sender, reciever ; # this is user ID from User Model
...... # many other attribute
message = TextField()
This is only a pseudo code. Anybody, please explain to me how to do this. If possible, give me a suitable tutorial link related to this. Thanks.