from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User


class Message(models.Model):
    from_user = models.ForeignKey(User, related_name='from_user')
    to_user = models.ForeignKey(User)
    content = models.TextField()
    date = models.DateTimeField()

    def __unicode__(self):
        return self.from_user.username

fde39f28171e5735a5f6dcfd384dc14d2da04ea3
<mask token>


class Message(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Message(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __unicode__(self):
        return self.from_user.username

<mask token>


class Message(models.Model):
    from_user = models.ForeignKey(User, related_name='from_user')
    to_user = models.ForeignKey(User)
    content = models.TextField()
    date = models.DateTimeField()

    def __unicode__(self):
        return self.from_user.username

from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User


class Message(models.Model):
    from_user = models.ForeignKey(User, related_name='from_user')
    to_user = models.ForeignKey(User)
    content = models.TextField()
    date = models.DateTimeField()

    def __unicode__(self):
        return self.from_user.username
