def get_allEvents(self):
if not hasattr(self,'<STR_LIT>'):<EOL><INDENT>timeFilters = {'<STR_LIT>': timezone.now()}<EOL>if getConstant('<STR_LIT>') or <NUM_LIT:0> > <NUM_LIT:0>:<EOL><INDENT>timeFilters['<STR_LIT>'] = timezone.now() + timedelta(days=getConstant('<STR_LIT>'))<EOL><DEDENT>self.allEvents = Event.objects.filter(<EOL>**timeFilters<EOL>).filter(<EOL>Q(instance_of=PublicEvent) |<EOL>Q(instance_of=Series)<EOL>).annotate(<EOL>**self.get_annotations()<EOL>).exclude(<EOL>Q(status=Event.RegStatus.hidden) |<EOL>Q(status=Event.RegStatus.regHidden) |<EOL>Q(status=Event.RegStatus.linkOnly)<EOL>).order_by(*self.get_ordering())<EOL><DEDENT>return self.allEvents<EOL>
Splitting this method out to get the set of events to filter allows
one to subclass for different subsets of events without copying other
logic