@@ -700,7 +700,7 @@ def test_relatedfieldlistfilter_foreignkey(self):
700
700
choice = select_by (filterspec .choices (changelist ), "display" , "alfred" )
701
701
self .assertIs (choice ["selected" ], True )
702
702
self .assertEqual (
703
- choice ["query_string" ], "?author__id__exact=%d " % self .alfred .pk
703
+ choice ["query_string" ], "?author__id__exact=%s " % self .alfred .pk
704
704
)
705
705
706
706
def test_relatedfieldlistfilter_foreignkey_ordering (self ):
@@ -803,7 +803,7 @@ def test_relatedfieldlistfilter_manytomany(self):
803
803
choice = select_by (filterspec .choices (changelist ), "display" , "bob" )
804
804
self .assertIs (choice ["selected" ], True )
805
805
self .assertEqual (
806
- choice ["query_string" ], "?contributors__id__exact=%d " % self .bob .pk
806
+ choice ["query_string" ], "?contributors__id__exact=%s " % self .bob .pk
807
807
)
808
808
809
809
def test_relatedfieldlistfilter_reverse_relationships (self ):
@@ -839,7 +839,7 @@ def test_relatedfieldlistfilter_reverse_relationships(self):
839
839
)
840
840
self .assertIs (choice ["selected" ], True )
841
841
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
843
843
)
844
844
845
845
# M2M relationship -----
@@ -873,7 +873,7 @@ def test_relatedfieldlistfilter_reverse_relationships(self):
873
873
self .assertIs (choice ["selected" ], True )
874
874
self .assertEqual (
875
875
choice ["query_string" ],
876
- "?books_contributed__id__exact=%d " % self .django_book .pk ,
876
+ "?books_contributed__id__exact=%s " % self .django_book .pk ,
877
877
)
878
878
879
879
# With one book, the list filter should appear because there is also a
0 commit comments