docs: def getListForEvent(self, event=None):
          ''' Get the list of names associated with a particular event. '''
          names = list(self.guestlistname_set.annotate(
              guestType=Case(
                  When(notes__isnull=False, then=F('notes')),
                  default=Value(ugettext('Manually Added')),
                  output_field=models.CharField()
              )
          ).values('firstName','lastName','guestType'))
  
          # Component-by-component, OR append filters to an initial filter that always
          # evaluates to False.
          components = self.guestlistcomponent_set.all()
          filters = Q(pk__isnull=True)
  
          # Add prior staff based on the component rule.
          for component in components:
              if event and self.appliesToEvent(event):
                  filters = filters | self.getComponentFilters(component,event=event)
              else:
                  filters = filters | self.getComponentFilters(component,dateTime=timezone.now())
  
          # Add all event staff if that box is checked (no need for separate components)
          if self.includeStaff and event and self.appliesToEvent(event):
              filters = filters | Q(eventstaffmember__event=event)
  
          # Execute the constructed query and add the names of staff
          names += list(StaffMember.objects.filter(filters).annotate(
              guestType=Case(
                  When(eventstaffmember__event=event, then=Concat(Value('Event Staff: '), 'eventstaffmember__category__name')),
                  default=Value(ugettext('Other Staff')),
                  output_field=models.CharField()
              )
          ).distinct().values('firstName','lastName','guestType'))
  
          if self.includeRegistrants and event and self.appliesToEvent(event):
              names += list(Registration.objects.filter(eventregistration__event=event).annotate(
                  guestType=Value(_('Registered'),output_field=models.CharField())
              ).values('firstName','lastName','guestType'))
          return names