Commit 2079e350931252789451c57f4b0fec8b475dc958

Authored by Felipe Henrique de Almeida Bormann
1 parent c4e88bee

added method get_short_name so admin screen doesn't break

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
users/models.py
... ... @@ -53,6 +53,9 @@ class User(AbstractBaseUser, PermissionsMixin):
53 53  
54 54 super(User, self).save(*args, **kwargs)
55 55  
  56 + def get_short_name(self):
  57 + return self.name
  58 +
56 59 @property
57 60 def image_url(self):
58 61 if self.image and hasattr(self.image, 'url'):
... ...