There seams to be a missing get_limit_choices_to() method.
Traceback (most recent call last):
File "D:\Python39\lib\site-packages\django\core\handlers\exception.py",
line 47, in inner
response = get_response(request)
File "D:\Python39\lib\site-packages\django\core\handlers\base.py", line
181, in _get_response
response = wrapped_callback(request, *callback_args,
**callback_kwargs)
File "D:\Python39\lib\site-packages\django\contrib\admin\sites.py", line
250, in wrapper
return self.admin_view(view, cacheable)(*args, **kwargs)
File "D:\Python39\lib\site-packages\django\utils\decorators.py", line
130, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "D:\Python39\lib\site-packages\django\views\decorators\cache.py",
line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "D:\Python39\lib\site-packages\django\contrib\admin\sites.py", line
232, in inner
return view(request, *args, **kwargs)
File "D:\Python39\lib\site-packages\django\contrib\admin\sites.py", line
417, in autocomplete_view
return AutocompleteJsonView.as_view(admin_site=self)(request)
File "D:\Python39\lib\site-packages\django\views\generic\base.py", line
70, in view
return self.dispatch(request, *args, **kwargs)
File "D:\Python39\lib\site-packages\django\views\generic\base.py", line
98, in dispatch
return handler(request, *args, **kwargs)
File "D:\Python39\lib\site-
packages\django\contrib\admin\views\autocomplete.py", line 25, in get
self.object_list = self.get_queryset()
File "D:\Python39\lib\site-
packages\django\contrib\admin\views\autocomplete.py", line 42, in
get_queryset
qs = qs.complex_filter(self.source_field.get_limit_choices_to())
AttributeError: 'ManyToOneRel' object has no attribute
'get_limit_choices_to'
--
Ticket URL: <https://code.djangoproject.com/ticket/32629>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* component: Uncategorized => contrib.admin
--
Ticket URL: <https://code.djangoproject.com/ticket/32629#comment:1>
* type: Uncategorized => Bug
--
Ticket URL: <https://code.djangoproject.com/ticket/32629#comment:2>
* ui_ux: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32629#comment:3>
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #32619.
--
Ticket URL: <https://code.djangoproject.com/ticket/32629#comment:4>