Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Does not support redefined objects query #24

Closed
ashleybartlett opened this issue May 21, 2021 · 0 comments
Closed

Does not support redefined objects query #24

ashleybartlett opened this issue May 21, 2021 · 0 comments

Comments

@ashleybartlett
Copy link

I have a model that has redefined the objects key as something else, and it breaks on the _inner wrapper inside the button decorator as it specifically calls modeladmin.model.objects.get when it should use modeladmin.get_object

https://github.com/saxix/django-admin-extra-urls/blob/develop/src/admin_extra_urls/decorators.py#L74

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants