      list_display = ['name', 'department']
      list_filter = ['department']
  
  
  class ListFiltersTests(TestCase):
  
      def setUp(self):
          self.today = datetime.date.today()
          self.tomorrow = self.today + datetime.timedelta(days=1)
          self.one_week_ago = self.today - datetime.timedelta(days=7)
 
</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  </s> remove         self.assertEqual(list(queryset), [john])
 </s> add         self.assertEqual(list(queryset), [self.john]) </s> remove         self.assertEqual(list(queryset), [jack, john])
 </s> add         self.assertEqual(list(queryset), [self.jack, self.john])
class DepartmentFilterEmployeeAdmin(EmployeeAdmin):
    list_filter = [DepartmentListFilterLookupWithNonStringValue, ]


      list_display = ['name', 'department']
      list_filter = ['department']
  
  
class DepartmentFilterEmployeeAdmin(EmployeeAdmin):
    list_filter = [DepartmentListFilterLookupWithNonStringValue, ]


  class ListFiltersTests(TestCase):
  
      def setUp(self):
          self.today = datetime.date.today()
          self.tomorrow = self.today + datetime.timedelta(days=1)
          self.one_week_ago = self.today - datetime.timedelta(days=7)
keep keep keep add keep 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