Hi Jacob.
On the one side - you can override this delete_confirmation.html and delete_selected_confirmation.html I do it since dj 1.4
On the other side I am agree with Jacob - it can be in Django by default. – We can add “collapsed” div to wrap <ul> with every objects list, or we can add details/summary for that.
Mit freundlichen Grüßen,
DI Mag. Maxim Danilov
+43(681)207 447 76
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e59f0771-cb65-4564-ace4-50a7ffd96cf6n%40googlegroups.com.
If the object to be deleted contains many relations, the user is overwhelmed with a list of other objects to be deleted together with the current object. Often those objects are just internal relations the user never heard of, and this may be unsettling.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/000001d8b16a%24d5c5f640%248151e2c0%24%40wpsoft.at.
But sometimes It is very painful to delete whole list of sessions (database-backed sessions) (4mlo) or Django admin logs (66mlo).
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM0JL9DqgnoFSehXd5D8d4DjzEzvhrUWwbw5wqUBQdDF3Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/000401d8b176%2405e12c90%2411a385b0%24%40wpsoft.at.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM2ieJ1Yr6AvH3ZLcX7AhZw7Sk2jNrWOH5gctvs1dkBFYw%40mail.gmail.com.
Then as Maxim points out, this is already possible with overriding the template.
I would argue that if the list of objects is "overwhelming" / "unsettling", then this is perhaps an indicator that the admin interface is being used beyond its intended scope. The admin is designed for site administrators, mostly developers. Yes, most projects seem to push it beyond that, but we can't make it something for all people.
Collapsing the list of to-be-deleted objects could also lead to cases of accidental removal of related objects. I think it's better to err on the side of overwhelming than hiding information.
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1bbb2f37-765d-4bcf-83d6-7ddc04dd5edcn%40googlegroups.com.
> Can we at least agree to put an id="..." onto the <ul> element wrapping that list.
That seems pretty minimal. 🙂 Do you want to open a PR so we can have a look?
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/5dd47fd5-adcb-4a28-934f-8d132c3c540cn%40googlegroups.com.