#NEWLINE# def allow_relation( self , obj1 , obj2 , **hints ) : #NEWLINE# #INDENT# for router in self . routers : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# method = obj1 . allow_relation #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# allow = method ( obj1 , obj2 , ** hints ) #NEWLINE# if ( allow is not None ) : #NEWLINE# #INDENT# return allow #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ( obj1 . _state . db == obj2 . _state . db )