如何设计“消息已读”功能?
class UserProfil(models.Model):
user = models.OneToOneField(User)
name = models.CharField(max_length=50)
class PrivateMessage(models.Model):
from_user = models.OneToOneField(User)
to_user = models.OneToOneField(User)
date = models.DateTimeField(auto_now_add=True)
content = models.TextField()