summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py17
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")