diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-12-07 23:34:48 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:22 +0100 |
commit | f1401f57765c987b49748d8e95a95409db9545ee (patch) | |
tree | efd88029aa1d27da7a42a22a3d5883417aa6ceb8 /ishtar_common | |
parent | c56a6656b21a665e0fccad074d938c945f97f948 (diff) | |
download | Ishtar-f1401f57765c987b49748d8e95a95409db9545ee.tar.bz2 Ishtar-f1401f57765c987b49748d8e95a95409db9545ee.zip |
Fix get values for title type
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 55d9ed164..0605a961c 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1879,6 +1879,13 @@ class TitleType(GeneralType): doc += ", **long_title** {}".format(_("Long title")) return doc + def get_values(self, prefix='', **kwargs): + return { + prefix: self.label, + prefix + "txt_idx": self.txt_idx, + prefix + "long_title": self.long_title + } + post_save.connect(post_save_cache, sender=TitleType) post_delete.connect(post_save_cache, sender=TitleType) |