Avoid error when rendering version diff
can't always assume relationship entities are versioned
This commit is contained in:
parent
8522123cd3
commit
b5da5a46de
|
@ -195,7 +195,7 @@ class VersionDiff(Diff):
|
||||||
|
|
||||||
ref = getattr(version, prop.key)
|
ref = getattr(version, prop.key)
|
||||||
if ref:
|
if ref:
|
||||||
ref = ref.version_parent
|
ref = getattr(ref, 'version_parent', None)
|
||||||
if ref:
|
if ref:
|
||||||
return HTML.tag('span', c=[
|
return HTML.tag('span', c=[
|
||||||
text,
|
text,
|
||||||
|
|
Loading…
Reference in a new issue