﻿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
24208	Change in `get_all_related_objects` behavior.	Tom Christie	nobody	"In Django 1.8 alpha, the behavior of the internal `get_all_related_objects()` changes.

If I have a model with a reverse foreign key relationship then...

* In 1.7 `get_all_related_objects` returns the relationship as `django.db.models.related.RelatedObject` with the `model` attribute set to the source of the relationship.
* In 1.8-alpha `get_all_related_objects` returns the relationship as `django.db.models.fields.related.ManyToOneRel` with the `model` attribute set to the target of the relationship.

Effect is that for REST framework ModelSerializers any automatic reverse relationships will be incorrectly generated.

This is private API, but it's also currently API that third party apps do need to rely on in order to be able to function and correctly introspect the model relationships.

I'd also be okay with a resolution where this *isn't* fixed per-se, but that it is at least demonstrated that there's now an alternative route that I can use to correctly determine the reverse relationships."	Cleanup/optimization	closed	Documentation	1.8alpha1	Release blocker	fixed		Tom Christie cmawebsite@…	Ready for checkin	1	0	0	0	0	0
