#NEWLINE# @ property #NEWLINE# def co_parent( self ) : #NEWLINE# #INDENT# 'returns the first co-parent as a BuildingSnapshot inst' #NEWLINE# if ( not first_child . has_children ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# first_child = self . children . all ( ) [ 0 ] #NEWLINE# for parent in first_child . parents . all ( ) : #NEWLINE# #INDENT# if ( parent . pk != self . pk ) : #NEWLINE# #INDENT# return parent