Skip to content

Commit

Permalink
feat(models): override deprecated_name verbose_name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
koeaw committed Mar 20, 2024
1 parent 78bee3d commit ee32444
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down

0 comments on commit ee32444

Please sign in to comment.