﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1330	[magic-removal] edit_inline completely broken	Tom Tobin <korpios@…>	Jacob	"When attempting to set a `ForeignKey` to `edit_inline=models.TABULAR` in magic-removal (r2279), I get the following error:

{{{
Exception Type: 	AttributeError
Exception Value: 	'RelatedObject' object has no attribute 'get_manipulator_fields'
Exception Location: 	/home/korpios/devel/py3p/django/db/models/manipulators.py in __init__, line 73
}}}

It appears that `RelatedObject`s are built in the `get_all_related_objects` method of `django.db.models.options.Options`; these are returned when the `__init__` method of `django.db.models.manipulators.AutomaticManipulator` calls `get_all_related_objects`.  Subsequently in the manipulator code, however, it expects such a `RelatedObject` to have a `get_manipulator_fields` method as if it were a subclass of `Field` (or mimicking one in part).  Attempting to simply redirect such calls to the `RelatedObject`'s `field` attribute results in further failures down the line (e.g., expecting a `get_list` method).

Going back to trunk, it seems that `RelatedObject` has these methods; I'm not sure with what code the fault lies here in magic-removal (i.e., with `RelatedObject` or `AutomaticManipulator`), so I'll defer to someone with more experience in this particular area.
"	defect	closed	Core (Other)	magic-removal	major	fixed		cmlenz@… david.ascher@…	Unreviewed	0	0	0	0	0	0
