﻿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
21431	Django 1.6 GenericRelation admin list_filter regression	stephenmcd	nobody	"Previously in 1.5 it was possible to have a model A with a GenericRelation field to a model B that had a ForeignKey to model C, and use the B__C path in A's admin list_filter.

In 1.6 this fails in django.contrib.admin.util.get_model_from_relation where the model on the wrong side of the relationship is returned, when the correct model is available via the parent_model attribute.

I've created a fix and test case here: https://github.com/django/django/pull/1913

Although as discussed, the fix should probably be different."	Bug	closed	contrib.admin	1.6	Release blocker	fixed			Accepted	0	0	0	0	0	0
