web/contentment/taxonomy.py
def prev(self):
		"""The sibling immediately preceeding this asset."""
		from operator import __or__
		from functools import reduce

		query = []

		for parent, order in self.clone().scalar('parent', 'order'):#.no_dereference():
			query.append(Q(parent=parent, order=order - 1))

		if not query:
			return None

		return self.base_query(reduce(__or__, query)).order_by('parent').first()
The sibling immediately preceeding this asset.
The sibling immediately preceeding this asset.
The sibling immediately preceeding this asset .
def prev(self):
		from operator import __or__
		from functools import reduce
		query = []
		for parent, order in self.clone().scalar('parent', 'order'):
			query.append(Q(parent=parent, order=order - 1))
		if not query:
			return None
		return self.base_query(reduce(__or__, query)).order_by('parent').first()
def prev ( self ) : from operator import __or__ from functools import reduce query = [ ] for parent , order in self . clone ( ) . scalar ( 'parent' , 'order' ) : query . append ( Q ( parent = parent , order = order - 1 ) ) if not query : return None return self . base_query ( reduce ( __or__ , query ) ) . order_by ( 'parent' ) . first ( )
The sibling immediately preceeding this asset.
The sibling immediately preceeding this asset .
"""The sibling immediately preceeding this asset.""" #.no_dereference():
self