mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Linter fixes
This commit is contained in:
parent
8b5b2886b2
commit
03f0bef0d8
@ -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" '
|
||||
|
Loading…
Reference in New Issue
Block a user