![]() It appears that the link to the source file was unavailable, possibly network issue or another admin deleting the file for space:ĬreateFileW failed for \\?\UNC\stl-sccm2\WIM\F14-Full.wim SMS_DISTRIBUTION_MANAGER 9:43:34 AM 5888 (0x1700)įileOpen failed 0x80070002 SMS_DISTRIBUTION_MANAGER 9:43:35 AM 5888 (0x1700)įileGetSize failed 0x80070002 SMS_DISTRIBUTION_MANAGER 9:43:35 AM 5888 (0x1700)ĬContentDefinition::AddFile failed 0x80070002 SMS_DISTRIBUTION_MANAGER 9:43:35 AM 5888 (0x1700)įailed to add the file. return self.root_queryset.filter(Exists(qs)).Well, I must have been distracted when looking through the log because I see the errors now. from django.db.models import Exists, OuterRef If filters_use_distinct | search_use_distinct: ![]() # Remove duplicates from results, if necessary Qs, search_use_distinct = self.model_admin.get_search_results(request, qs, -487,11 486,14 class ChangeList: Ordering = self.get_ordering(request, qs) IMO we should use Exists() instead of distinct(), e.g.ĭiff -git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py This exception was introduce in 6307c3f1a123f5975c73b231e8ac4f115fd72c0d and revealed a possible data loss issue in the admin. ![]() distinct() is being called because of the search involving the many to many field. I can confirm that pip install django=3.1.8 fixes the error, and after having a look at the diff between stable/3.2.x and 3.1.8, I suspect the "regression" comes about from the work done on preserving the filters on delete or something along those lines - I haven't done a thorough investigation yet. Raise TypeError('Cannot call delete() after. ![]() lete_queryset(request, queryset)įile ".lib/python3.7/site-packages/django/contrib/admin/options.py", line 1107, in delete_querysetįile ".lib/python3.7/site-packages/django/db/models/query.py", line 728, in delete Response = self.response_action(request, queryset=cl.get_queryset(request))įile ".lib/python3.7/site-packages/django/contrib/admin/options.py", line 1406, in response_actionįile ".lib/python3.7/site-packages/django/contrib/admin/actions.py", line 45, in delete_selected Response = view_func(request, *args, **kwargs)įile ".lib/python3.7/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_funcįile ".lib/python3.7/site-packages/django/contrib/admin/sites.py", line 241, in innerįile ".lib/python3.7/site-packages/django/utils/decorators.py", line 43, in _wrapperįile ".lib/python3.7/site-packages/django/contrib/admin/options.py", line 1737, in changelist_view Return self.admin_site.admin_view(view)(*args, **kwargs)įile ".lib/python3.7/site-packages/django/utils/decorators.py", line 130, in _wrapped_view Response = wrapped_callback(request, *callback_args, **callback_kwargs)įile ".lib/python3.7/site-packages/django/contrib/admin/options.py", line 616, in wrapper Then opening the admin site, opening the post page that contains only one post (any title and author assigned) and entering a search term (e.g the first 2 characters of the title), selecting the post and then using the delete action results in an Internal Sever Error 500 with an error/stack-trace:įile ".lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in innerįile ".lib/python3.7/site-packages/django/core/handlers/base.py", line 181, in _get_response Search_fields = ("title", "authors_email")
0 Comments
Leave a Reply. |