          changelist = self.get_changelist(request, Employee, modeladmin)
  
          # Make sure the correct queryset is returned
          queryset = changelist.get_query_set(request)
          self.assertEqual(list(queryset), [john])
  
          filterspec = changelist.get_filters(request)[0][-1]
          self.assertEqual(force_text(filterspec.title), 'department')
          choices = list(filterspec.choices(changelist))
  
 
</s> remove         self.assertEqual(list(queryset), [jack, john])
 </s> add         self.assertEqual(list(queryset), [self.jack, self.john]) </s> remove         dev = Department.objects.create(code='DEV', description='Development')
        design = Department.objects.create(code='DSN', description='Design')
        john = Employee.objects.create(name='John Blue', department=dev)
        jack = Employee.objects.create(name='Jack Red', department=design)

 </s> add 
        self.assertEqual(list(queryset), [self.john])
          changelist = self.get_changelist(request, Employee, modeladmin)
  
          # Make sure the correct queryset is returned
          queryset = changelist.get_query_set(request)
        self.assertEqual(list(queryset), [self.john])
  
          filterspec = changelist.get_filters(request)[0][-1]
          self.assertEqual(force_text(filterspec.title), 'department')
          choices = list(filterspec.choices(changelist))
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #19318 -- Ensured that the admin's SimpleListFilter options can be displayed as selected even if the lookup's first element is not a string. 
tests/regressiontests/admin_filters/tests.py