#9061: formsets with can_delete=True shouldn't add delete field to extra forms -----------------------------+-------------------------------------- Reporter: gsf | Owner: danielward Type: New feature | Status: assigned Component: Forms | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 1 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------+-------------------------------------- Changes (by danielward):
* owner: nobody => danielward * status: new => assigned Comment: While I can understand how from a usability perspective this could be confusing, the ability to delete can also be a useful way to discard a new form entry rather than having to clear each populated field for the given form(s). As a result, I propose adding a `can_delete_extra` option to formsets, which allow developers to decide whether they wish to omit deletion fields from their formsets without having to write any any additional logic in to their templates/views. I'm about to attach the relevant patches. If accepted, I'm happy to provide a patch to public documentation for reference also. -- Ticket URL: <https://code.djangoproject.com/ticket/9061#comment:9> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/061.247dfabc8ca32ff5b9b7b12acf4fa976%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.