Add Django 1.8+ style Meta app_label to Avatar model to prevent RemovedInDjango19Warning

This commit is contained in:
Kaloian Minkov 2015-07-23 11:23:33 +03:00
parent 3cd2f8e448
commit 97b1ffd020

View file

@ -70,6 +70,9 @@ class Avatar(models.Model):
blank=True)
date_uploaded = models.DateTimeField(default=now)
class Meta:
app_label = 'avatar'
def __unicode__(self):
return _(six.u('Avatar for %s')) % self.user