#2647 closed defect (duplicate)
Error when changing ManyToManyField referencing "self" with raw_id_admin
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
Appears to be a duplicate of #1816; fix for raw_id_admin was added in #3858/#3859.