Reference¶
django_model_info¶
Commands¶
modelinfo¶
- class django_model_info.management.commands.modelinfo.Command(*args, **kwargs)[source]¶
A Django management command to list out the fields and methods for each model.
- add_arguments(parser)[source]¶
Add custom arguments to the command.
- Parameters:
parser (CommandParser)
- append_abstract_models()[source]¶
Retrieve abstract models.
For each model in the model list, we get MRO, and add any class in the MRO that is in the same app as the model.
- create_parser(prog_name, subcommand, **kwargs)[source]¶
Create and return the
ArgumentParserwhich will be used to parse the arguments to this command.Reimplemented to allow new default verbosity of 2.
- get_clean_method_list(model)[source]¶
Clean method list by removing uppercase and non-callable methods.
modelfilters¶
- class django_model_info.management.commands.modelfilters.Command(*args, **kwargs)[source]¶
Display model field relationships in tabular format.
- add_arguments(parser)[source]¶
Add command arguments.
- Parameters:
parser (CommandParser)
- Return type:
None