From f1401f57765c987b49748d8e95a95409db9545ee Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 7 Dec 2020 23:34:48 +0100 Subject: Fix get values for title type --- ishtar_common/models.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ishtar_common/models.py') 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) -- cgit v1.2.3