#26543: Changelist actions don't redirect after failed action resulting in
possible
ERR_CACHE_MISS in next steps
-------------------------------+--------------------
Reporter: nanuxbe | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------+--------------------
When a changlist action fail (at least when failing because no item was
selected) no redirect is triggered.
Therefore if the user hits the browser "reload" button, he is asked to
confirm that he wants to re-submit the form.
This looks inconsistent where the rest of Django Admin that usually always
makes sure the user can hit the refresh button when on a list.
Another use-case where this lead to a more cryptic error message is this
one:
- In a changelist select "Delete selected records" and click go
- A warning is displayed telling you to select items
- select any number of records
- pick "Delete selected records" and click go again
- On the confirmation page, click "No, take me back"
- Browser shows an ERR_CACHE_MISS error
Possible fixes I see:
- update the changelist code to redirect to the same changelist if an
error occurs during the execution of a changelist action (fixes both use-
cases)
- update the delete confirmation page to not use the browser history to go
back (fixes only problem 2 but might also have some undesired side-effects
like loss of selection)
--
Ticket URL: <https://code.djangoproject.com/ticket/26543>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.6df3b835ed6088df8a6680a0b68eee55%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.