parameters: (self)
return_statement: return (success_parents | failure_parents | always_parents).order_by('id')
docstring: Returns queryset containing all parents of this node
docstring_summary: Returns queryset containing all parents of this node
docstring_tokens: Returns queryset containing all parents of this node
function: def get_parent_nodes(self):
          '''Returns queryset containing all parents of this node'''
          success_parents = getattr(self, '%ss_success' % self.__class__.__name__.lower()).all()
          failure_parents = getattr(self, '%ss_failure' % self.__class__.__name__.lower()).all()
          always_parents = getattr(self, '%ss_always' % self.__class__.__name__.lower()).all()
          return (success_parents | failure_parents | always_parents).order_by('id')
function_tokens: def get_parent_nodes ( self ) : success_parents = getattr ( self , '%ss_success' % self . __class__ . __name__ . lower ( ) ) . all ( ) failure_parents = getattr ( self , '%ss_failure' % self . __class__ . __name__ . lower ( ) ) . all ( ) always_parents = getattr ( self , '%ss_always' % self . __class__ . __name__ . lower ( ) ) . all ( ) return ( success_parents | failure_parents | always_parents ) . order_by ( 'id' )