You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will run the first django inline action rather than save the form
I believe this is due to how input type "submit" works. It's before the save button (Unless I'm missing something?)
ideas:
Instead of using a button / form at all, Link to an action URL with a GET param of the object ID, redirect back to the model page with a notification message
Render buttons type="button" and have an onClick() handler:
@escaped My current best idea (not tested yet) is to use ModelAdmin.get_urls() and link to a page that runs the actions and redirects back. It could accept url routing and GET params.
Edit any normal field value and press Enter
It will run the first django inline action rather than save the form
I believe this is due to how
input type "submit"
works. It's before the save button (Unless I'm missing something?)ideas:
type="button"
and have anonClick()
handler:django-inline-actions/inline_actions/admin.py
Line 120 in d024413
submit-row
higher in HTML (but visually keep it at the button of the page)The text was updated successfully, but these errors were encountered: