def from_election_to_elections(apps, schema_editor):
    # We can't import the Person model directly as it may be a newer
    # version than this migration expects. We use the historical version.
    Election = apps.get_model("elections", "Election")
    Candidate = apps.get_model("elections", "Candidate")
    for candidate in Candidate.objects.all():
        candidate.elections.add(candidate.election)