summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-02 18:21:22 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-02 18:22:49 +0100
commit948b9799b4a44739b36ba65e01ec27fe21f68255 (patch)
tree4c4068c6c37f9abd19f5220d9f793e37a21fd8b3 /ishtar_common/models.py
parent3c3dc92e3aef6c479b0d5f020c7dc8c4ce76e532 (diff)
downloadIshtar-948b9799b4a44739b36ba65e01ec27fe21f68255.tar.bz2
Ishtar-948b9799b4a44739b36ba65e01ec27fe21f68255.zip
Sheet find: link to baskets
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index b6c8fbb3d..70f65fd68 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3477,6 +3477,10 @@ class Basket(FullSearch, OwnPerms):
def cached_label(self):
return unicode(self)
+ @property
+ def full_label(self):
+ return u"{} - {}".format(self.label, self.user)
+
@classmethod
def get_short_menu_class(cls, pk):
return 'basket'