#32659: Autocomplete field: The results could not be loaded.
-------------------------------+--------------------------------------
     Reporter:  honyczek       |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  contrib.admin  |                  Version:  3.2
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by Erik van Widenfelt):

 This had nothing to do with caching or `collectstatic` for me. I traced it
 to the `admin_site` attribute of `AutocompleteJsonView`.The view tries to
 get the `model_admin` class for the `remote model` from Django's default
 admin site. If you registered your remote model in a custom admin site a
 `KeyError` is raised (line 84). This behavior has changed from 3.1 to 3.2.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32659#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.24ea21ae112ab7f39f010b4e062a0490%40djangoproject.com.

Reply via email to