Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion of node via admin raises AttributeError #69

Open
martin-mueller-cemas opened this issue Nov 17, 2021 · 0 comments
Open

Deletion of node via admin raises AttributeError #69

martin-mueller-cemas opened this issue Nov 17, 2021 · 0 comments

Comments

@martin-mueller-cemas
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant