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

Can we add these buttons in admin form template? If yes, then how? #10

Open
singhal-abhi opened this issue Dec 21, 2022 · 3 comments
Open

Comments

@singhal-abhi
Copy link

No description provided.

@saxix
Copy link
Owner

saxix commented Oct 30, 2023

not sure to get the question. the button is added to the change_list or change_form depending on view arguments

@xuhcc
Copy link

xuhcc commented Aug 8, 2024

Button is not added to change form even if change_form is True

Button is added to change list only if change_list is set to True. Method signature seems to be ignored.

Django 3.2, django-admin-extra-buttons 1.5.8

@xuhcc
Copy link

xuhcc commented Aug 21, 2024

Update: this library doesn't work if view signature contains *args or **kwargs. Buttons appeared only after I removed all wildcard arguments.
And if view signature is (request, pk) the pattern string must also contain a parameter (e.g. <int:pk>/path), otherwise button declaration will be ignored with no error message.

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

3 participants