diff options
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 |