django-cms / djangocms-admin-style

django CMS Admin Style is a Django Theme tailored to the needs of django CMS.
http://www.django-cms.org/
Other
412 stars 116 forks source link

Remove double click prevention #440

Closed andre-dasilva closed 1 year ago

andre-dasilva commented 2 years ago

The preventDoubleFormSubmissions() does not work well with django admin actions.

If I for example download a pdf file from django admin action (return a HttpResponse in the action) then the button does not work after the first execution (because of the preventDoubleFormSubmissions()). Only after a reload it will work again, which can be annoying for users.

So I would disable / remove this function. Was there a reason for it? The normal django admin does not do this.