From ce9b783c0887088d204a5dc543c9985f77088562 Mon Sep 17 00:00:00 2001 From: Grant Fitzsimmons <37256050+grantfitzsimmons@users.noreply.github.com> Date: Wed, 10 Jun 2026 12:32:37 -0500 Subject: [PATCH 1/2] fix(datamodel): add missing relationships --- specifyweb/specify/datamodel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specifyweb/specify/datamodel.py b/specifyweb/specify/datamodel.py index 7ea0b9d3dba..12e32c9b94d 100644 --- a/specifyweb/specify/datamodel.py +++ b/specifyweb/specify/datamodel.py @@ -594,6 +594,8 @@ def is_tree_table(table: Table): Index(name='AttchmentGuidIDX', column_names=['GUID']) ], relationships=[ + Relationship(name='absoluteageattachments', type='one-to-many',required=False, relatedModelName='AbsoluteAgeAttachment', otherSideName='attachment'), + Relationship(name='relativeageattachments', type='one-to-many',required=False, relatedModelName='RelativeAgeAttachment', otherSideName='attachment'), Relationship(name='accessionAttachments', type='one-to-many',required=False, relatedModelName='AccessionAttachment', otherSideName='attachment'), Relationship(name='agentAttachments', type='one-to-many',required=False, relatedModelName='AgentAttachment', otherSideName='attachment'), Relationship(name='attachmentImageAttribute', type='many-to-one',required=False, relatedModelName='AttachmentImageAttribute', column='AttachmentImageAttributeID', otherSideName='attachments'), From cd69409cd58fa1087efc87ba262b3831bb4bc741 Mon Sep 17 00:00:00 2001 From: Grant Fitzsimmons <37256050+grantfitzsimmons@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:04:40 -0500 Subject: [PATCH 2/2] fix: model capitalizations --- specifyweb/specify/datamodel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specifyweb/specify/datamodel.py b/specifyweb/specify/datamodel.py index 12e32c9b94d..91b9703c5af 100644 --- a/specifyweb/specify/datamodel.py +++ b/specifyweb/specify/datamodel.py @@ -594,8 +594,8 @@ def is_tree_table(table: Table): Index(name='AttchmentGuidIDX', column_names=['GUID']) ], relationships=[ - Relationship(name='absoluteageattachments', type='one-to-many',required=False, relatedModelName='AbsoluteAgeAttachment', otherSideName='attachment'), - Relationship(name='relativeageattachments', type='one-to-many',required=False, relatedModelName='RelativeAgeAttachment', otherSideName='attachment'), + Relationship(name='absoluteAgeAttachments', type='one-to-many',required=False, relatedModelName='AbsoluteAgeAttachment', otherSideName='attachment'), + Relationship(name='relativeAgeAttachments', type='one-to-many',required=False, relatedModelName='RelativeAgeAttachment', otherSideName='attachment'), Relationship(name='accessionAttachments', type='one-to-many',required=False, relatedModelName='AccessionAttachment', otherSideName='attachment'), Relationship(name='agentAttachments', type='one-to-many',required=False, relatedModelName='AgentAttachment', otherSideName='attachment'), Relationship(name='attachmentImageAttribute', type='many-to-one',required=False, relatedModelName='AttachmentImageAttribute', column='AttachmentImageAttributeID', otherSideName='attachments'),