code: def get_delegates(self):
          
          candidate_elections = CandidateElection.objects.filter(election=self)
  
          delegates = None
          for ce in candidate_elections:
              delegates = delegates | ce.delegates.all()
  
          return delegates
docs: Get all pledged delegates for any candidate in this election.