Changes between Version 3 and Version 4 of Ticket #32659, comment 9


Ignore:
Timestamp:
Jun 19, 2021, 12:44:08 PM (4 years ago)
Author:
Erik van Widenfelt

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32659, comment 9

    v3 v4  
    77        # django/contrib/admin/views/autocomplete.py
    88
    9         from django.contrib.admin.sites import all_sites
     9from django.contrib.admin.sites import all_sites
    1010
     11class AutocompleteJsonView(BaseListView):
     12    ....
     13
     14    def process_request(self, request):
     15       
    1116        ....
    12 
    13         # find the correct admin site for this remote model
     17       
     18       # find the correct admin site for this remote model
    1419        try:
    1520            admin_site = [s for s in all_sites if s.is_registered(remote_model)][0]
Back to Top