diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-12-06 23:34:57 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:22 +0100 |
commit | ee0179cbbe14e400aff6b0e9c865ce6e36152ea4 (patch) | |
tree | 78af689e7dc7bbdc02cb06782f165f9ee10342c9 /ishtar_common/models.py | |
parent | 78b76b596213369146488cb9964ae877502c5aab (diff) | |
download | Ishtar-ee0179cbbe14e400aff6b0e9c865ce6e36152ea4.tar.bz2 Ishtar-ee0179cbbe14e400aff6b0e9c865ce6e36152ea4.zip |
Title type: add long title - Orga/Person type: add grammatical gender
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index e841690bb..cf0a41c54 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1631,7 +1631,18 @@ class Area(HierarchicalType): return " / ".join(label) +GENDER = ( + ("M", _("Male")), + ("F", _("Female")), + ("N", _("Neutral")), +) + + class OrganizationType(GeneralType): + grammatical_gender = models.CharField( + _("Grammatical gender"), max_length=1, choices=GENDER, + blank=True, default="") + class Meta: verbose_name = _("Organization type") verbose_name_plural = _("Organization types") @@ -1770,6 +1781,10 @@ post_save.connect(cached_label_changed, sender=Organization) class PersonType(GeneralType): + grammatical_gender = models.CharField( + _("Grammatical gender"), max_length=1, choices=GENDER, + blank=True, default="") + class Meta: verbose_name = _("Person type") verbose_name_plural = _("Person types") @@ -1833,6 +1848,8 @@ def get_publisher_label(): class TitleType(GeneralType): + long_title = models.TextField(_("Long title"), default="", blank=True) + class Meta: verbose_name = _("Title type") verbose_name_plural = _("Title types") |