Error when changing ManyToManyField referencing "self" with raw_id_admin
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||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.