#35747: Admin change list doesn't redirect to default ordering when the last
ordering field is removed from sorting
-------------------------------------+-------------------------------------
     Reporter:  ldeluigi             |                     Type:  Bug
       Status:  new                  |                Component:
                                     |  contrib.admin
      Version:  5.1                  |                 Severity:  Normal
     Keywords:  admin change list    |             Triage Stage:
  ordering sorting sortremove        |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  1
-------------------------------------+-------------------------------------
 Basically, when an admin maually clicks on the sortremove link of the last
 remaining field in the sorting query variable, the redirect points to an
 empty string.

 For example, if the query parameter is the default `o`, the redirect
 points to `/?o=`, which results in the change list not being ordered at
 all. Instead, I'm claiming that users would expect to see the same
 ordering they experience when landing on the change list page in the first
 place, which was the default ordering, only visible when the ordering
 parameter is absent from the sortremove query.

 For this reason, I'd like the sortremove to redirect to `/` instead of
 `/?o=` when the last ordering field would be removed.

 I'm opening a PR that *should* do the job.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35747>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191d63dcf25-14447122-985b-4e6d-bda3-8c29888b2240-000000%40eu-central-1.amazonses.com.

Reply via email to