Djangonaut diaries, week 2: working on the first issue
Hi there! OK, so in parts 1 and 2 we prepared our development environment to contribute with Django. I guess now it's time to actually get stuff done! The issue I picked up is 17 years old, which I...
Source: dev.to
Hi there! OK, so in parts 1 and 2 we prepared our development environment to contribute with Django. I guess now it's time to actually get stuff done! The issue I picked up is 17 years old, which I'd love to say "nearly my age", but unfortunately not :P In summary: when you select one or more items to be deleted in Django Admin, it rightly shows a confirmation page, like this So, it shows the object(s) you're about to delete, and their children, recursively, which is great to avoid regrets. But what if there are thousand of children objects? Suddenly the list may get reeeeeeaaaaaally long, taking several seconds to load, potentially slowing down the browser due to memory usage, while forcing the user to scroll a lot to reach the "Yes, I'm sure" button. While the original request was to add the ability to hide the list of objects altogether, I really like a suggestion (comment #13) by user terminator14, to let one define the maximum number of items to show (say, 100) and then something