From 5df83f7aa54a3ecbbc957d52babf4b52b9e22706 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 27 Mar 2026 13:04:29 +0100 Subject: 🗃️ sites - models migrations: heritage, relations and datings fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index a6aab9416..e52d210a6 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -4683,9 +4683,18 @@ def author_post_save(sender, **kwargs): post_save.connect(author_post_save, sender=Author) +MODELS_FOR_QUALIFICATION = ( + ("S", _("Archaeological site")), + ("O", _("Operation")), + ("C", _("Context record")), + ("F", _("Find")), + ("A", _("All")), +) + class QualifiedBiographicalNoteType(OrderedHierarchicalType): order = models.IntegerField(_("Order"), default=10) + model = models.CharField(_("Model"), max_length=2, choices=MODELS_FOR_QUALIFICATION) class Meta: verbose_name = _("Qualification type") -- cgit v1.2.3