from django.db import models

class NotificationManager(models.Manager):
    def unread(self):
        return self.get_query_set().filter(read=False)

class Notification(models.Model):
    message = models.TextField()
    to_user = models.ForeignKey('userprofile.UserProfile')
    read = models.BooleanField(default=False)

    objects = NotificationManager()

    def __unicode__(self):
        return "Notification: %s" % (self.message,)

b347995161d8632fac91dc57aba39f1376916bca
<mask token>


class Notification(models.Model):
    message = models.TextField()
    to_user = models.ForeignKey('userprofile.UserProfile')
    read = models.BooleanField(default=False)
    objects = NotificationManager()

    def __unicode__(self):
        return 'Notification: %s' % (self.message,)

<mask token>


class NotificationManager(models.Manager):
    <mask token>


class Notification(models.Model):
    message = models.TextField()
    to_user = models.ForeignKey('userprofile.UserProfile')
    read = models.BooleanField(default=False)
    objects = NotificationManager()

    def __unicode__(self):
        return 'Notification: %s' % (self.message,)

<mask token>


class NotificationManager(models.Manager):

    def unread(self):
        return self.get_query_set().filter(read=False)


class Notification(models.Model):
    message = models.TextField()
    to_user = models.ForeignKey('userprofile.UserProfile')
    read = models.BooleanField(default=False)
    objects = NotificationManager()

    def __unicode__(self):
        return 'Notification: %s' % (self.message,)

from django.db import models


class NotificationManager(models.Manager):

    def unread(self):
        return self.get_query_set().filter(read=False)


class Notification(models.Model):
    message = models.TextField()
    to_user = models.ForeignKey('userprofile.UserProfile')
    read = models.BooleanField(default=False)
    objects = NotificationManager()

    def __unicode__(self):
        return 'Notification: %s' % (self.message,)

from django.db import models

class NotificationManager(models.Manager):
    def unread(self):
        return self.get_query_set().filter(read=False)

class Notification(models.Model):
    message = models.TextField()
    to_user = models.ForeignKey('userprofile.UserProfile')
    read = models.BooleanField(default=False)

    objects = NotificationManager()

    def __unicode__(self):
        return "Notification: %s" % (self.message,)
