﻿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
28988	Multi-table inheritance breaks GenericRelation querying	robwa	Tim Graham <timograham@…>	"Minimal example to reproduce. Create two models:

{{{
#!python
class Generic(models.Model):                                                                   
    content_type = models.ForeignKey('contenttypes.ContentType')                               
    object_id = models.PositiveIntegerField()                                                  
    obj = GenericForeignKey()                                                                  
                                                                                               
class Vehicle(models.Model):                                                                   
    associations = GenericRelation('Generic', related_query_name='vehicles')
}}}

Create a `Vehicle` and a `Generic` object pointing to the `Vehicle`. The following query returns the expected result:

{{{
In [2]: Generic.objects.filter(vehicles__id=1)
Out[2]: <QuerySet [<Generic: Generic object>]>
}}}

Add a third model. Don't change any data. Now the query returns an empty query set:

{{{
#!python
class Bike(Vehicle):                                                                          
    pass
}}}

{{{
In [2]: Generic.objects.filter(vehicles__id=1)
Out[2]: <QuerySet []>
}}}"	Bug	closed	contrib.contenttypes	1.11	Normal	fixed			Ready for checkin	1	0	0	0	0	0
