Avoid error when rendering version diff

can't always assume relationship entities are versioned
This commit is contained in:
Lance Edgar 2023-11-01 17:47:07 -05:00
parent 8522123cd3
commit b5da5a46de

View file

@ -195,7 +195,7 @@ class VersionDiff(Diff):
ref = getattr(version, prop.key)
if ref:
ref = ref.version_parent
ref = getattr(ref, 'version_parent', None)
if ref:
return HTML.tag('span', c=[
text,