#33868: Admin “delete object(s)” view: improve labels of m2m relations
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  [email protected]              |
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:             |        Version:  4.0
  contrib.admin                      |
               Severity:  Normal     |       Keywords:  admin, delete view
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 When deleting an object that has m2m relations in Django Admin, it shows a
 nice overview of what’s going to be deleted, including the records from
 m2m relations. Here’s a screenshot of a minimal example:


 The labels for the m2m relations are constructed like this:

 //Photo-person relationship: Photo_depicts object (1)//

 //Photo-person relationship// makes perfect sense to me; //Photo_depicts
 object (1)// could be improved.

 I suggest using the labels of the string representation of the concrete
 from- and to-objects.

 Let me know what you think about it and I will see if I can come up with a
 patch.

 Background:
 Two years ago, I had a discussion on the Django developers mailing list
 about improving the labels that are used for m2m relations in Django
 Admin’s delete view. While reviewing old tickets to day, I checked the
 mailing list again and thought “Why not give it another shot?”.
 https://groups.google.com/g/django-developers/c/TxZtZyB3kpc

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33868>
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/010701823a5edf91-42e4043f-3435-4dca-8d53-d4b0f958bb10-000000%40eu-central-1.amazonses.com.

Reply via email to