Skip to content
New issue

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

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

Already on GitHub? # to your account

KeyError: 'delete_selected' #2

Closed
diegueus9 opened this issue Apr 29, 2019 · 2 comments
Closed

KeyError: 'delete_selected' #2

diegueus9 opened this issue Apr 29, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@diegueus9
Copy link

diegueus9 commented Apr 29, 2019

I was testing this app with django 2.1.8 and got this error when trying to check the admin:

File "/var/virtualenv/project/lib/python3.6/site-packages/automated_logging/admin.py", line 19, in get_actions
    del actions["delete_selected"]
KeyError: 'delete_selected'

An easy fix would be:

    def get_actions(self, request):
        actions = super(ReadOnlyAdminMixin, self).get_actions(request)
        actions.pop('delete_selected', None)
        return actions
@indietyp
Copy link
Owner

I am sorry for the late reply - I haven't been able to keep track of the project as much as I would've wanted in the last year.

Issue is acknowledged and will be fixed in a future release (currently working on a rework)

@indietyp indietyp self-assigned this May 21, 2020
@indietyp indietyp added the bug Something isn't working label May 21, 2020
@indietyp
Copy link
Owner

fixed with 6.0.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants