def create_event(self): if self.congress < 111: return # not interested, creates too much useless data and slow to load from events.models import Feed, Event with Event.update(self) as E: E.add("vote", self.created, Feed.AllVotesFeed()) for v in self.voters.all(): if v.person_id: E.add("vote", self.created, Feed.PersonVotesFeed(v.person_id))