add_builtin_budgets

Add the built-in Budgets: one for each Budget example manifest, in data/example-manifests/budgets/.

They are created detached, so they enforce nothing until a superuser attaches them to resources. A budget that already exists, by name, is left as it is.

class smarter.apps.account.management.commands.add_builtin_budgets.Command(*args, **kwargs)[source]

Bases: SmarterCommand

Django manage.py add_builtin_budgets command.

add_arguments(parser)[source]

Add arguments to the command.

handle(*args, **options)[source]

Create the built-in budgets that do not exist yet.