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 ArgumentParser which 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_checks attribute, 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

args

base_stealth_options

can_import_settings

help

output_transaction

requires_migrations_checks

requires_system_checks

stealth_options