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
Sorry for being 3 years late :P
But I've been able to solve this problem by overriding the admin/submit_line.html and creating a fake hidden submit button before the actual save buttons of django admin. This prevents enter key from submitting the form.
Create the following file in root dir of your django project : templates/admin/submit_line.html
This isn't necessarily an issue, but a question.
I want to have this plugin operate like the demo inside the Django Admin, but upon pressing
Enter
it attempts to submit the form.How can I associate a preventDefault to the keypress?
The text was updated successfully, but these errors were encountered: