diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-22 16:34:42 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:42:32 +0200 |
commit | ea97eb9b040fb9d1489a3976a7ed9fe5bbf811d0 (patch) | |
tree | 818db429aa6328ea545a0f267c5bb4795b69d4be /archaeological_finds/models_finds.py | |
parent | b46f56274b469da5c1ee154e29552ef1cbeacaf8 (diff) | |
download | Ishtar-ea97eb9b040fb9d1489a3976a7ed9fe5bbf811d0.tar.bz2 Ishtar-ea97eb9b040fb9d1489a3976a7ed9fe5bbf811d0.zip |
✏️ Integrity / interest -> Integrity
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r-- | archaeological_finds/models_finds.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 757f38899..8ef32c8de 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -234,8 +234,8 @@ post_delete.connect(post_save_cache, sender=TreatmentType) class IntegrityType(GeneralType): class Meta: - verbose_name = _("Integrity / interest type") - verbose_name_plural = _("Integrity / interest types") + verbose_name = _("Integrity type") + verbose_name_plural = _("Integrity types") ordering = ("label",) ADMIN_SECTION = _("Finds") @@ -1176,7 +1176,7 @@ class Find( ("object_types__label", _("Object type")), ("preservation_to_considers__label", _("Recommended treatments")), ("conservatory_state__label", _("Conservatory state")), - ("integrities__label", _("Integrity / interest")), + ("integrities__label", _("Integrity")), ("remarkabilities__label", _("Remarkability")), ("communicabilities__label", _("Communicability")), ("checked_type__label", _("Check")), @@ -2060,7 +2060,7 @@ class Find( ) integrities = models.ManyToManyField( IntegrityType, - verbose_name=_("Integrity / interest"), + verbose_name=_("Integrity"), related_name="find", blank=True, ) @@ -2312,6 +2312,8 @@ class Find( @property def has_museum_section(self): + if get_current_profile().museum and self.mark: + return True for field in self._meta.fields: if not field.name.startswith("museum_"): continue |