summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-02 19:29:11 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-08-02 19:29:11 +0200
commit5e70cc61b723fb36e0da14abb6c8de58a18162d5 (patch)
treecf98515d86721212915cb6cb00cb41d8e3f9c574 /ishtar_common/models.py
parentba6c73260563fcc6b8a0164e55b13a3eb48e9205 (diff)
downloadIshtar-5e70cc61b723fb36e0da14abb6c8de58a18162d5.tar.bz2
Ishtar-5e70cc61b723fb36e0da14abb6c8de58a18162d5.zip
Admin - ishtar common: use ajax selects for some fields - clean and simplify
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 01b46b7ae..5afde8ffb 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2956,6 +2956,9 @@ class IshtarUser(models.Model):
verbose_name = _(u"Ishtar user")
verbose_name_plural = _(u"Ishtar users")
+ def __unicode__(self):
+ return unicode(self.person)
+
@classmethod
def set_superuser(cls, user):
q = cls.objects.filter(user_ptr=user)