def METHOD_NAME(self, *args, **options):
    data = self.load_data(options)
    trust_csv = options["replace_seats_total"]
    updated_elections = []
    for line in data:
        if line[self.CREATED_FIELD].lower() == "yes":
            try:
                election = Election.public_objects.get(
                    election_id=line[self.ELECTION_ID_FIELD]
                )
            except Election.DoesNotExist:
                self.stdout.write(
                    f"No election found with id {line[self.ELECTION_ID_FIELD]}. (org: {line['ORG Name']}; division: {line['ward name']} ({line['EE Division ID']}))"
                )
            seats_contested = self.get_seats_contested(line)
            seats_total = self.get_seats_total(
                election, line, trust_csv=trust_csv
            )
            if seats_total is None:
                message = "Seats total not known for {}".format(
                    election.election_id
                )
                if options["skip_unknown"]:
                    self.stdout.write(message)
                else:
                    raise ValueError(message)
            if seats_total and not seats_total >= seats_contested:
                raise ValueError(
                    "seats total less than seats_contested for {}".format(
                        election.election_id
                    )
                )
            election.seats_contested = seats_contested
            if seats_total and trust_csv:
                election.seats_total = seats_total
            updated_elections.append(election)
    self.save_all(updated_elections)