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

$ python manage.py modeltree [command] [options]

preview

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 manage.py modeltree preview [alias | app.model]

Example

$ python manage.py modeltree preview auth.User

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