Can we add these buttons in admin form template? If yes, then how?
Opened this issue · 3 comments
singhal-abhi commented
Can we add these buttons in admin form template? If yes, then how?
saxix commented
not sure to get the question. the button is added to the change_list or change_form depending on view arguments
xuhcc commented
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 commented
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.