Django

Code

Ticket #2648 (closed: duplicate)

Opened 2 years ago

Last modified 2 years ago

Bi-directional edits of ManyToMany fields in admin

Reported by: sh@warma.dk Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

In certain situations, it makes sense to be able to edit a ManyToMany? relation in both of the datatypes' admin pages. I propose adding an extra keyword argument to ManyToManyField? that makes it appear as though both of the datatypes has the manytomany relation.

Use case: In my case, I have a bunch of categories and a bunch of items. Items can be in any number of categories and a category can contain any number of items.

If I'm creating a new item and already know that it belongs in categories a, b, and c, I should not have to open each of those categories to add the item to them. On the other hand, I might be creating a new category and know that items x, y, and z belongs in it, I shouldn't need to open each of x, y, and z to add them to the categories. With the current limitations, I can only have one of the above.

Attachments

Change History

12/12/06 02:32:58 changed by anonymous

I'd really like to see this implemented as well.

01/16/07 01:15:45 changed by anonymous

Identical to http://code.djangoproject.com/ticket/897 ? I would really like this too.

01/16/07 14:53:29 changed by Gary Wilson <gary.wilson@gmail.com>

  • status changed from new to closed.
  • resolution set to duplicate.

Yes I would say so. Closing as duplicate of #897.


Add/Change #2648 (Bi-directional edits of ManyToMany fields in admin)




Change Properties
Action