From b93cb723d0efa0c7b5f82d7d0c3d4b07b46e5ce1 Mon Sep 17 00:00:00 2001 From: KK Date: Wed, 20 Mar 2024 12:32:42 +0100 Subject: [PATCH] feat(models): override deprecated_name verbose_name Implement temporary global workaround for how 'deprecated_name' is rendered in the UI so it can be differentiated from new 'name' field inherited from GenericNameMixin. --- apis_ontology/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis_ontology/models.py b/apis_ontology/models.py index 9a368f6..e29ee7b 100644 --- a/apis_ontology/models.py +++ b/apis_ontology/models.py @@ -916,6 +916,10 @@ class Meta: verbose_name_plural = _("interpretateme") +deprecated_name = AbstractEntity._meta.get_field("deprecated_name") +deprecated_name.verbose_name = "[deprecated, ignore]" + + def create_properties( name_forward: str, name_reverse: str, subjects: list, objects: list ):