camel-case correction for targeted models

This commit is contained in:
CocoByte 2024-03-07 15:06:34 -07:00
parent a71c48a27d
commit 84c221bac6
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 2 additions and 2 deletions

View file

@ -1466,7 +1466,7 @@ class TestDomainRequestAdmin(MockEppLib):
# Grab the current dropdown. We do an API call to autocomplete to get this info.
domain_request_queryset = self.admin.formfield_for_foreignkey(investigator_field, request).queryset
user_request = self.factory.post(
"/admin/autocomplete/?app_label=registrar&model_name=DomainRequest&field_name=investigator"
"/admin/autocomplete/?app_label=registrar&model_name=domain_request&field_name=investigator"
)
user_admin = MyUserAdmin(User, self.site)
user_queryset = user_admin.get_search_results(user_request, domain_request_queryset, None)[0]