def METHOD_NAME(self, election, line, trust_csv=False):
    csv_seats_total = None
    db_seats_total = None
    seats_total = None
    # See if we already have the seats_total
    if election.division.seats_total:
        db_seats_total = election.division.seats_total
    if line[self.SEATS_TOTAL_FIELD]:
        csv_seats_total = int(line[self.SEATS_TOTAL_FIELD] or None)
    if db_seats_total:
        # Warn if the CSV has a different seats total
        if csv_seats_total != db_seats_total:
            self.stdout.write(
                "Seats total mismatch for {} ({} vs {})".format(
                    election.election_id, csv_seats_total, db_seats_total
                )
            )
        seats_total = db_seats_total
    else:
        if trust_csv and csv_seats_total and csv_seats_total > 0:
            self.stdout.write(
                "Taking seats total from CSV for {}".format(
                    election.election_id
                )
            )
            seats_total = csv_seats_total
    return seats_total