disbi.join module

Contains the class Relations that stores relations between models and joins them together appropriately.

class disbi.join.Relations(app_label, model_superclass=None)[source]

Bases: object

Stores relations of models and has the ability to join them.


Execute the the SQL JOIN and create a table thereof.

Get all models related to model of a superclass.


Determine whether the relation_map is a tree.

Perform some setup and then call the depth first search, starting from an arbitrary node.

Returns:bool – True if the graph is a tree. If it contains at least on cycle or is not connected, return False.

Start the join process between all models.