Avoid error when rendering version diff
can't always assume relationship entities are versioned
This commit is contained in:
		
							parent
							
								
									8522123cd3
								
							
						
					
					
						commit
						b5da5a46de
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar