Selecting a single item (or multiple items) in the admin panel for a node type (inherited from DjangoNode) and applying the delete action raises an AttributeError exception instead of deleting the item(s).
Traceback from Django runserver output:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.10/site-packages/django/contrib/admin/options.py", line 616, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/contrib/admin/sites.py", line 232, in inner
return view(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/utils/decorators.py", line 43, in _wrapper
return bound_method(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/django/contrib/admin/options.py", line 1723, in changelist_view
response = self.response_action(request, queryset=cl.get_queryset(request))
File "/usr/local/lib/python3.10/site-packages/django/contrib/admin/options.py", line 1408, in response_action
response = func(self, request, queryset)
File "/usr/local/lib/python3.10/site-packages/django/contrib/admin/actions.py", line 52, in delete_selected
objects_name = model_ngettext(queryset)
File "/usr/local/lib/python3.10/site-packages/django/contrib/admin/utils.py", line 257, in model_ngettext
d = model_format_dict(obj)
File "/usr/local/lib/python3.10/site-packages/django/contrib/admin/utils.py", line 239, in model_format_dict
'verbose_name': opts.verbose_name,
AttributeError: 'NeoNodeSet' object has no attribute 'verbose_name'
Selecting a single item (or multiple items) in the admin panel for a node type (inherited from
DjangoNode
) and applying the delete action raises anAttributeError
exception instead of deleting the item(s).Traceback from Django
runserver
output: