Opened 15 years ago

Closed 8 years ago

#11574 closed New feature (wontfix)

Allow extra blank rows for adding new records when using list_editable in admin change list view

Reported by: Ryan Fugger Owned by: Adonys Alea Boffill
Component: contrib.admin Version: dev
Severity: Normal Keywords: list_editable extra rows add
Cc: cmawebsite@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

Now that we can edit records in bulk in the admin using list_editable, it would be nice to be able to add new items in bulk in the same way. Something like a list_editable_extra field on ModelAdmin that works similarly to the extra field on InlineModelAdmin.

What's seems to be needed:

  • Set the extra parameter to modelformset_factory in ModelAdmin.get_changelist_formset to generate the empty forms.
  • Adapt the result_list template tag in admin_list.py to show the extra forms. This can be done by calling items_for_result with an empty model for each empty form.
  • Adapt paginator and actions area to account for the extra rows. Not quite sure how to do this.

Change History (14)

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Julien Phalip, 13 years ago

Severity: Normal
Type: New feature

comment:3 by Julien Phalip, 13 years ago

UI/UX: set

comment:4 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:5 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:6 by Aymeric Augustin, 13 years ago

UI/UX: set

Revert accidental batch modification.

comment:7 by Aymeric Augustin, 12 years ago

Triage Stage: Design decision neededAccepted

This sounds like a worthy improvement, and it's consistent with how inlines work.

comment:8 by gregchapple, 11 years ago

Owner: changed from nobody to gregchapple
Status: newassigned

comment:9 by gregchapple, 11 years ago

Owner: gregchapple removed
Status: assignednew

comment:10 by Collin Anderson, 10 years ago

Cc: cmawebsite@… added

comment:11 by Adonys Alea Boffill, 8 years ago

Owner: set to Adonys Alea Boffill
Status: newassigned

comment:12 by Tim Graham, 8 years ago

I have some reservations about this. It seems unlikely that list_editable will include enough fields to create a complete object in most cases, and it's yet another feature that increases the complexity of the admin. I'd like to see a discussion on the DevelopersMailingList to see if there's any prior art and to see if there's consensus to add this feature.

in reply to:  12 comment:13 by Adonys Alea Boffill, 8 years ago

Thanks for your time and for your opinion Tim!, I recently opened the discussion https://groups.google.com/forum/#!topic/django-developers/gN0OBiCUCso.

comment:14 by Tim Graham, 8 years ago

Resolution: wontfix
Status: assignedclosed

Given no replies on the mailing list, little activity on the ticket in 7 years, and the complexity involved, I'm going to close this as wontfix.

Note: See TracTickets for help on using tickets.
Back to Top