add_example_budgets

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

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_example_budgets.Command(*args, **kwargs)[source]

Bases: SmarterExamplesCommand

Django manage.py add_example_budgets command.

add_examples(user_profile)[source]

Create the example budgets that do not exist yet.

Return type:

list[str]

family: str = 'Budget'

The resources’ name, for the command’s output, e.g. "Secret".

help = 'Create the example Budgets, detached, in smarter/apps/account/data/example-manifests/budgets and data/stackademy.'
requires_owner: bool = False

False for examples that no user owns, e.g. Budgets, so that the command has no --username.