mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-05-17 03:51:07 +00:00
Add Django 1.8+ style Meta app_label to Avatar model to prevent RemovedInDjango19Warning
This commit is contained in:
parent
3cd2f8e448
commit
97b1ffd020
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue