Opened 18 years ago

Closed 18 years ago

Last modified 18 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

Description

When a model field is defined as follows:

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

symmetrical=False,
#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 by Russell Keith-Magee, 18 years ago

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