django_admin_generator.management.commands package¶
Submodules¶
django_admin_generator.management.commands.admin_generator module¶
admin_generator management command entry point.
- class django_admin_generator.management.commands.admin_generator.Command(*args: Any, **kwargs: Any)[source]¶
Bases:
CustomBaseCommand- add_arguments(parser: CommandParser) None[source]¶
Entry point for subclassed commands to add custom arguments.
- can_import_settings = True¶
- handle(app: str | None = None, *args: Any, **kwargs: Any) None[source]¶
The actual logic of the command. Subclasses must implement this method.
- handle_app(app: AppConfig, model_res: list[Pattern[str]], write: bool = False, output: str | None = None, force: bool = False, append: bool = False, **options: Any) None[source]¶
- help = 'Generate a `admin.py` file for the given app (models)'¶
- requires_system_checks = ('__all__',)¶