from django.conf import settings
from django.db import models
from django.template.defaultfilters import truncatechars


class Status(models.Model):
    user = models.ForeignKey(settings.AUTH_USER_MODEL)
    text = models.CharField(max_length=255)
    created = models.DateTimeField(auto_now_add=True)

    class Meta:
        verbose_name_plural = 'statuses'

    def __unicode__(self):
        return truncatechars(self.text, 20)

from django.conf import settings
from django.db import models
from django.template.defaultfilters import truncatechars


class Status(models.Model):
    user = models.ForeignKey(settings.AUTH_USER_MODEL)
    text = models.CharField(max_length=255)
    created = models.DateTimeField(auto_now_add=True)

    class Meta:
        verbose_name_plural = 'statuses'

    def __unicode__(self):
        return truncatechars(self.text, 20)
