akvo.rsr.management.commands.migrate_related_project_contributors module
- class akvo.rsr.management.commands.migrate_related_project_contributors.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
- add_arguments(parser: ArgumentParser)[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 Project contributors from RelatedProject to .contributes_to_project and external_parent_iati_activity_id'
- class akvo.rsr.management.commands.migrate_related_project_contributors.Migrator(stdout: TextIO, stderr: TextIO, project_model: Type[Project], related_project_model: Type[RelatedProject], apply: bool = False)[source]
Bases:
object
- migrate_external_related_parents()[source]
External (outside of RSR) parent projects that are contributed to are migrated to the Project model