#NEWLINE# def get_participating_trip( self ) : #NEWLINE# #INDENT# '\n        Returns the Trip in which the Person is Participating\n        ' #NEWLINE# participations = participation . Participation . objects . filter ( started = True , finished = False , author = self , trip__active = True ) #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( len ( participations ) > 1 ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return participations [ 0 ] . trip