summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-12-08 15:22:11 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:22 +0100
commit46e930e758d48318bc009e3ef3a06d98610721d9 (patch)
tree8a44a0023f0a740c07a2a238a4f47e2a5cb72b62 /ishtar_common/models.py
parent3cabe852ae1c568ac19837b16ad7b29bc9a4bd75 (diff)
downloadIshtar-46e930e758d48318bc009e3ef3a06d98610721d9.tar.bz2
Ishtar-46e930e758d48318bc009e3ef3a06d98610721d9.zip
Title: add id to get_values
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index ea3bd5ed1..6eb7fac6d 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1882,6 +1882,7 @@ class TitleType(GenderedType):
def get_values(self, prefix='', **kwargs):
return {
prefix: self.label,
+ prefix + "id": self.pk,
prefix + "txt_idx": self.txt_idx,
prefix + "long_title": self.long_title
}