akvo.rsr.management.commands.fix_project_hierarchy_missing_periods module

class akvo.rsr.management.commands.fix_project_hierarchy_missing_periods.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 = 'Restore indicator periods missing from child projects.\n\n    For consistency in data aggregation, we enforce that child indicators have\n    the same periods as the parent. Before we enabled this rule in the UI,\n    users could delete periods. This script looks for such indicators and goes\n    around fixing them.\n\n    '
akvo.rsr.management.commands.fix_project_hierarchy_missing_periods.fix_missing_periods(project)[source]