feat(access): All Entity models to use the entity notes endpoint

ref: #707 #706
This commit is contained in:
2025-04-03 17:44:46 +09:30
parent aba9f44552
commit 3417e37317
2 changed files with 7 additions and 2 deletions

View File

@ -65,6 +65,8 @@ class Entity(
# app_namespace = 'access'
note_basename = '_api_v2_entity_note'
documentation = ''
page_layout: dict = []
@ -87,7 +89,10 @@ class Entity(
if getattr(self, related_object.name, None):
if not str(related_object.name).endswith('history'):
if(
not str(related_object.name).endswith('history')
and not str(related_object.name).endswith('notes')
):
return related_object.name
break