akvo.rsr.management.commands.remove_disaggregation_targets_dupes module

class akvo.rsr.management.commands.remove_disaggregation_targets_dupes.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 = 'Script to delete disaggregation target duplication at indicator and period level.\n\nUse the --delete option to actually delete the duplicate objects'
akvo.rsr.management.commands.remove_disaggregation_targets_dupes.find_duplicates(objects, project_relation)[source]
akvo.rsr.management.commands.remove_disaggregation_targets_dupes.handle_duplicates(type, perform_deletion=False, verbosity=1)[source]