Changes between Version 3 and Version 4 of Ticket #32659, comment 9
- Timestamp:
- Jun 19, 2021, 12:44:08 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32659, comment 9
v3 v4 7 7 # django/contrib/admin/views/autocomplete.py 8 8 9 9 from django.contrib.admin.sites import all_sites 10 10 11 class AutocompleteJsonView(BaseListView): 12 .... 13 14 def process_request(self, request): 15 11 16 .... 12 13 17 18 # find the correct admin site for this remote model 14 19 try: 15 20 admin_site = [s for s in all_sites if s.is_registered(remote_model)][0]