Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2647 closed defect (duplicate)

Error when changing ManyToManyField referencing "self" with raw_id_admin

Reported by: dart@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When a model field is defined as follows:

subcomponents = models.ManyToManyField("self", blank=True, null=True,

#raw_id_admin=True, # <- Django bug activated: raw on "self" broken

(with the comment removed) the admin interface will raise an ObjectNotFound exception when you edit an object of this type (and you don't have to change this particular field).

I narrowed it down through trial-and-error to that combination of parameters.

Change History (1)

comment:1 Changed 15 years ago by Russell Keith-Magee

Resolution: duplicate
Status: newclosed

Appears to be a duplicate of #1816; fix for raw_id_admin was added in #3858/#3859.

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