Commit 2079e350931252789451c57f4b0fec8b475dc958
1 parent
c4e88bee
Exists in
master
and in
3 other branches
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,6 +53,9 @@ class User(AbstractBaseUser, PermissionsMixin): | ||
53 | 53 | ||
54 | super(User, self).save(*args, **kwargs) | 54 | super(User, self).save(*args, **kwargs) |
55 | 55 | ||
56 | + def get_short_name(self): | ||
57 | + return self.name | ||
58 | + | ||
56 | @property | 59 | @property |
57 | def image_url(self): | 60 | def image_url(self): |
58 | if self.image and hasattr(self.image, 'url'): | 61 | if self.image and hasattr(self.image, 'url'): |