def METHOD_NAME(self, *args, **options):
    election_date = options["date"]
    election_id = f"ref.{options['council']}.{election_date}"
    referendum_type = ElectionType.objects.get(election_type="ref")
    group_election, created = Election.private_objects.update_or_create(
        election_id=f"ref.{election_date}",
        defaults={
            "election_type": referendum_type,
            "poll_open_date": election_date,
            "election_title": "Referendum elections",
            "current": True,
            "division_id": options["division_id"],
            "group_type": "election",
        },
    )
    ref_election, created = Election.private_objects.update_or_create(
        election_id=election_id,
        defaults={
            "election_type": referendum_type,
            "poll_open_date": election_date,
            "election_title": options["election_title"],
            "current": True,
            "division_id": options["division_id"],
            "voting_system": "FPTP",
            "group": group_election,
        },
    )
    self.stdout.write(
        f"{'Created' if created else 'Updated'} {election_id}"
    )
    ModerationHistory.objects.get_or_create(
        status_id=ModerationStatuses.approved.value,
        election=group_election,
    )
    ModerationHistory.objects.get_or_create(
        status_id=ModerationStatuses.approved.value,
        election=ref_election,
    )
    org = Organisation.objects.get_by_date(
        date=election_date,
        official_identifier=options["official_identifier"],
        organisation_type=options["org_type"],
    )
    ref_election.organisation = org
    ref_election.organisation_geography = org.geographies.latest()
    if ref_election.division:
        ref_election.division_geography = ref_election.division.geography
    ref_election.save()