diff --git a/tests/admin_widgets/test_autocomplete_widget.py b/tests/admin_widgets/test_autocomplete_widget.py index 265a45d95c..2ec46a0a66 100644 --- a/tests/admin_widgets/test_autocomplete_widget.py +++ b/tests/admin_widgets/test_autocomplete_widget.py @@ -215,7 +215,9 @@ class AutocompleteMixinTests(TestCase): beatles = Band.objects.create(name="The Beatles", style="rock") rubber_soul = Album.objects.create(name="Rubber Soul", band=beatles) form = ReleaseEventForm(initial={"album": rubber_soul.pk}) - widget = form["album"].field.widget.render(name="my_field", value=rubber_soul.pk) + widget = form["album"].field.widget.render( + name="my_field", value=rubber_soul.pk + ) self.assertInHTML( f'