Modeltree comes with a management command modeltree which is the parent command.

$ python modeltree [command] [options]


Prints the traversal path of a model and all related models. An alias (as defined in the MODELTREES settings) or an explicit app.model name can be specified. If neither are specified, the default modeltree will be previewed.

$ python modeltree preview [alias | app.model]


$ python modeltree preview auth.User

....Group (via groups)
....Permission (via user_permissions)
........ContentType (via content_type)
....LogEntry (via logentry_set)