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
msgatWARNINGlevel on the class logger.- Parameters:
msg (object)
args (object)
exc_info (bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException | None)
stack_info (bool)
stacklevel (int)
- Return type:
None