code: def save(self, *args, **kwargs):
          
          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)
docs: **uid**: :code:`{race.uid}_election:{election_day}-{party}`