1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Linter fixes

This commit is contained in:
Mariana 2024-11-12 23:14:49 +00:00
parent 8b5b2886b2
commit 03f0bef0d8

View File

@ -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'<option value="{rubber_soul.pk}" data-test="custom" '
'class="other admin-autocomplete" data-ajax--cache="true" '