easymode.tree

Functionality to create trees of django models.

If a django model tree can be categorised as a DAG (Directed Acylclic Graph) This module contains the machinery to add recursive serialisation to xml and recursive admin support to the models in such a tree.

easymode.tree.xml(obj)

Used to convert either

  • a django model decorated with easymode.tree.decorators.toxml()
  • a queryset obtained by querying a model decorated with easymode.tree.decorators.toxml()
  • an easymode.tree.query.XmlQuerySetChain

to xml

easymode.tree.decorators

easymode.tree.query

easymode.tree.admin.relation

easymode.tree.introspection