akvo.rsr.management.commands.create_organisation_codelist module

Create or Update a codelist and optionally link it to organisations.

Usage:

python manage.py create_organisation_codelist <slug> <json-path>_[<org-ids>]

class akvo.rsr.management.commands.create_organisation_codelist.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

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

The actual logic of the command. Subclasses must implement this method.

help = 'Create or Update a codelist and optionally link it to organisations.\n\nUsage:\n\n    python manage.py create_organisation_codelist <slug> <json-path>_[<org-ids>]\n\n'