categories.management.commands.add_category_fields.Command
Command#
- class categories.management.commands.add_category_fields.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]#
Alter one or more models’ tables with the registered attributes.
Methods
add_arguments(parser)Add app_names argument to the command.
check([app_configs, tags, ...])Use the system check framework to validate entire Django project.
check_migrations()Print a warning if the set of migrations on disk don't match the migrations in the database.
create_parser(prog_name, subcommand, **kwargs)Create and return the
ArgumentParserwhich will be used to parse the arguments to this command.execute(*args, **options)Try to execute this command, performing system checks if needed (as controlled by the
requires_system_checksattribute, except if force-skipped).get_version()Return the Django version, which should be correct for all built-in Django commands.
handle(*args, **options)Alter the tables.
print_help(prog_name, subcommand)Print the help message for this command, derived from
self.usage().run_from_argv(argv)Set up any environment changes requested (e.g., Python path and Django settings), then run this command.
Attributes
argsbase_stealth_optionscan_import_settingshelpoutput_transactionrequires_migrations_checksrequires_system_checksstealth_options