@@ -20,7 +20,7 @@ def test_get(self, client, artists):
2020 artist = artists [0 ]
2121 form = AlbumModelSelect2WidgetForm ()
2222 assert form .as_p ()
23- field_id = form .fields ['artist' ].widget .widget_id
23+ field_id = form .fields ['artist' ].widget .field_id
2424 url = reverse ('django_select2:auto-json' )
2525 response = client .get (url , {'field_id' : field_id , 'term' : artist .title })
2626 assert response .status_code == 200
@@ -55,7 +55,7 @@ def test_pagination(self, genres, client):
5555 search_fields = ['title__icontains' ]
5656 )
5757 widget .render ('name' , None )
58- field_id = widget .widget_id
58+ field_id = widget .field_id
5959
6060 response = client .get (url , {'field_id' : field_id , 'term' : '' })
6161 assert response .status_code == 200
@@ -76,7 +76,7 @@ def test_label_from_instance(self, artists, client):
7676 form = AlbumModelSelect2WidgetForm ()
7777 form .fields ['artist' ].widget = ArtistCustomTitleWidget ()
7878 assert form .as_p ()
79- field_id = form .fields ['artist' ].widget .widget_id
79+ field_id = form .fields ['artist' ].widget .field_id
8080
8181 artist = artists [0 ]
8282 response = client .get (url , {'field_id' : field_id , 'term' : artist .title })
@@ -90,7 +90,7 @@ def test_url_check(self, client, artists):
9090 artist = artists [0 ]
9191 form = AlbumModelSelect2WidgetForm ()
9292 assert form .as_p ()
93- field_id = form .fields ['artist' ].widget .widget_id
93+ field_id = form .fields ['artist' ].widget .field_id
9494 cache_key = form .fields ['artist' ].widget ._get_cache_key ()
9595 widget_dict = cache .get (cache_key )
9696 widget_dict ['url' ] = 'yet/another/url'
0 commit comments