@@ -700,7 +700,7 @@ def test_relatedfieldlistfilter_foreignkey(self):
700700 choice = select_by (filterspec .choices (changelist ), "display" , "alfred" )
701701 self .assertIs (choice ["selected" ], True )
702702 self .assertEqual (
703- choice ["query_string" ], "?author__id__exact=%d " % self .alfred .pk
703+ choice ["query_string" ], "?author__id__exact=%s " % self .alfred .pk
704704 )
705705
706706 def test_relatedfieldlistfilter_foreignkey_ordering (self ):
@@ -803,7 +803,7 @@ def test_relatedfieldlistfilter_manytomany(self):
803803 choice = select_by (filterspec .choices (changelist ), "display" , "bob" )
804804 self .assertIs (choice ["selected" ], True )
805805 self .assertEqual (
806- choice ["query_string" ], "?contributors__id__exact=%d " % self .bob .pk
806+ choice ["query_string" ], "?contributors__id__exact=%s " % self .bob .pk
807807 )
808808
809809 def test_relatedfieldlistfilter_reverse_relationships (self ):
@@ -839,7 +839,7 @@ def test_relatedfieldlistfilter_reverse_relationships(self):
839839 )
840840 self .assertIs (choice ["selected" ], True )
841841 self .assertEqual (
842- choice ["query_string" ], "?books_authored__id__exact=%d " % self .bio_book .pk
842+ choice ["query_string" ], "?books_authored__id__exact=%s " % self .bio_book .pk
843843 )
844844
845845 # M2M relationship -----
@@ -873,7 +873,7 @@ def test_relatedfieldlistfilter_reverse_relationships(self):
873873 self .assertIs (choice ["selected" ], True )
874874 self .assertEqual (
875875 choice ["query_string" ],
876- "?books_contributed__id__exact=%d " % self .django_book .pk ,
876+ "?books_contributed__id__exact=%s " % self .django_book .pk ,
877877 )
878878
879879 # With one book, the list filter should appear because there is also a
0 commit comments