**uid**: :code:`{race.uid}_election:{election_day}-{party}`

def save(self, *args, **kwargs):
        """
        **uid**: :code:`{race.uid}_election:{election_day}-{party}`
        """
        if self.party:
            self.uid = "{}_election:{}-{}".format(
                self.race.uid,
                self.election_day.date,
                slugify(self.party.ap_code),
            )
        else:
            self.uid = "{}_election:{}".format(
                self.race.uid, self.election_day.date
            )
        super(Election, self).save(*args, **kwargs)