Akvo RSR
  • Components
  • Reference documentation
    • Database Schema
    • Module Index
      • akvo package
        • Subpackages
        • Submodules
  • RSR Docker Development Environment
  • Deploying
Akvo RSR
  • Reference documentation
  • akvo package
  • akvo.rsr package
  • akvo.rsr.management package
  • akvo.rsr.management.commands package
  • akvo.rsr.management.commands.migrate_related_project_contributors module
  • View page source

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

err(msg: str)[source]
migrate()[source]
migrate_external_related_parents()[source]

External (outside of RSR) parent projects that are contributed to are migrated to the Project model

migrate_related_parents()[source]

Internal (in RSR) parent projects that are contributed to are migrated to the Project model

out(msg: str)[source]
run()[source]
Previous Next

© Copyright 2023, Akvo Foundation.

Built with Sphinx using a theme provided by Read the Docs.