From 6c6062dc666dce915d04a27856777d5491db1380 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 11 Jan 2021 14:04:19 +0100 Subject: Add grammatical gender to organizations --- ishtar_common/models_common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 65b90157e..3bd97e192 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -170,8 +170,11 @@ class GeneralType(Cached, models.Model): """ Used for automatic documentation generation """ - return "**label** {}, **txt_idx** {}".format(str(_("Label")), - str(_("Textual ID"))) + s = "**label** {}, **txt_idx** {}".format(str(_("Label")), + str(_("Textual ID"))) + if hasattr(cls, "extra_documentation_string"): + s += cls.extra_documentation_string() + return s @classmethod def admin_url(cls): -- cgit v1.2.3