Re: More user friendly delete confirmation template

2022-08-16 Thread Carlton Gibson
> Can we at least agree to put an id="..." onto the element wrapping that list. That seems pretty minimal.  Do you want to open a PR so we can have a look? On Tue, 16 Aug 2022 at 21:58, Jacob Rief wrote: > Can we at least agree to put an id="..." onto the element wrapping > that list. >

Re: More user friendly delete confirmation template

2022-08-16 Thread Jacob Rief
Can we at least agree to put an id="..." onto the element wrapping that list. That would help me to add some JS and CSS to the overwritten delete_selected_confirmation template without having to copy a huge block of HTML code from that template. – Jacob -- You received this message because

Re: Fellow Reports - August 2022

2022-08-16 Thread Mariusz Felisiak
Week ending August 14, 2022 *Triaged: * https://code.djangoproject.com/ticket/33902 - UniqueConstraint's validation crashes with string expressions. (accepted) https://code.djangoproject.com/ticket/33904 - Many-To-Many field is deleted/ignored from internal JavaScript “filter” interface

Re: More user friendly delete confirmation template

2022-08-16 Thread אורי
אורי u...@speedy.net On Tue, Aug 16, 2022 at 3:55 PM 'Adam Johnson' via Django developers (Contributions to Django itself) wrote: > 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

Re: More user friendly delete confirmation template

2022-08-16 Thread Jacob Rief
The least intrusive change would be to add an id="..." to the -element wrapping that list. This at least allows me to add such a Javascript snippet into {% block extrahead %}. – Jacob -- You received this message because you are subscribed to the Google Groups "Django developers

Re: More user friendly delete confirmation template

2022-08-16 Thread Jacob Rief
On Tuesday, August 16, 2022 at 4:23:03 PM UTC+2 Carlton Gibson wrote: > > Then as Maxim points out, this is already possible with overriding the > template. > > That's what I did of course in the first place. It however turns out that you have to copy quite a bunch of boilerplate code, the

Re: More user friendly delete confirmation template

2022-08-16 Thread Carlton Gibson
These kinds of UI features are quite "maintenance-heavy" — they're hard to test, and fragile — and so can consume a lot of time in review, perhaps disproportionate, perhaps not. That on-top of Adam's points mean I'd lean to -1 to begin. Maybe that's not the final answer, but I'd look for another

Re: More user friendly delete confirmation template

2022-08-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
The admin interface is not designed for such mass deletions. When deleting millions of objects, it can be necessary to paginate the deletion to avoid exhausting the resources of your database server. I don't think it's suitable for a view to try and do this. Btw in the case of sessions, use the

RE: More user friendly delete confirmation template

2022-08-16 Thread Danilov Maxim
>> 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. But sometimes It is very painful to delete whole list of sessions (

Re: More user friendly delete confirmation template

2022-08-16 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > 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. > I would argue that if the list

RE: More user friendly delete confirmation template

2022-08-16 Thread Danilov Maxim
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 with every objects list, or we can add

More user friendly delete confirmation template

2022-08-16 Thread Jacob Rief
Whenever a user attempts to delete an object inside the Django admin, a delete confirmation page is shown. 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

Re: UI/UX - FilteredSelectMultiple - Filtering the selected options

2022-08-16 Thread Gav O'Connor
Thanks Jacob. We have the functionality of the selects working fine, it's just finding a way to make it clear to the user that the selected options that are filtered out are still in fact selected and will be sent as such in the POST. Thanks for the info though, I'll take look. On