docs: def get_create_option(self, context, q):
          """Form the correct create_option to append to results."""
          create_option = []
          display_create_option = False
          if self.create_field and q:
              page_obj = context.get('page_obj', None)
              if page_obj is None or page_obj.number == 1:
                  display_create_option = True
  
          if display_create_option and self.has_add_permission(self.request):
              '''
              Generate querysets of Locations, StaffMembers, and Users that 
              match the query string.
              '''
              for s in Location.objects.filter(
                  Q(
                      Q(name__istartswith=q) & Q(transactionparty__isnull=True)
                  )
              ):
                  create_option += [{
                      'id': 'Location_%s' % s.id,
                      'text': _('Generate from location "%(location)s"') % {'location': s.name},
                      'create_id': True,
                  }]
  
              for s in StaffMember.objects.filter(
                  Q(
                      (Q(firstName__istartswith=q) | Q(lastName__istartswith=q)) &
                      Q(transactionparty__isnull=True)
                  )
              ):
                  create_option += [{
                      'id': 'StaffMember_%s' % s.id,
                      'text': _('Generate from staff member "%(staff_member)s"') % {'staff_member': s.fullName},
                      'create_id': True,
                  }]
  
              for s in User.objects.filter(
                  Q(
                      (Q(first_name__istartswith=q) | Q(last_name__istartswith=q)) &
                      Q(staffmember__isnull=True) & Q(transactionparty__isnull=True)
                  )
              ):
                  create_option += [{
                      'id': 'User_%s' % s.id,
                      'text': _('Generate from user "%(user)s"') % {'user': s.get_full_name()},
                      'create_id': True,
                  }]
  
              # Finally, allow creation from a name only.
              create_option += [{
                  'id': q,
                  'text': _('Create "%(new_value)s"') % {'new_value': q},
                  'create_id': True,
              }]
          return create_option