akvo.rsr.management.commands.fix_project_qualitative_narrative_text_update module

class akvo.rsr.management.commands.fix_project_qualitative_narrative_text_update.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 = 'Move qualitative IndicatorPeriodData.text value to IndicatorPeriodData.narrative.\n\n    Fix inconsistency on IndicatorPeriodData narrative which should be stored in narrative\n    attribute instead of text attribute. This script will looks for qualitative period update\n    with non empty text attribute value but with empty narrative and move the text value to the\n    narrative attribute.\n\n    '