admin_generator command

admin_generator management command entry point.

class django_admin_generator.management.commands.admin_generator.Command(*args, **kwargs)[source]

Bases: CustomBaseCommand

help = 'Generate a `admin.py` file for the given app (models)'
can_import_settings = True
requires_system_checks = ('__all__',)
add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

Parameters:

parser (CommandParser)

Return type:

None

classmethod warning(msg, *args, exc_info=None, stack_info=False, stacklevel=1, extra=None)[source]

Log msg at WARNING level on the class logger.

Parameters:
Return type:

None

handle(app=None, *args, **kwargs)[source]

The actual logic of the command. Subclasses must implement this method.

Parameters:
Return type:

None

handle_app(app, model_res, write=False, output=None, force=False, append=False, **options)[source]
Parameters:
Return type:

None