Fixed #28988 -- Fixed queries when a GenericRelation is used with multi-table inheritance.

This commit is contained in:
robwa 2018-03-13 03:42:48 +01:00 committed by Tim Graham
parent b639bcc250
commit 4ab027b944
4 changed files with 22 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class LinkProxy(Link):
class Place(models.Model):
name = models.CharField(max_length=100)
links = GenericRelation(Link)
links = GenericRelation(Link, related_query_name='places')
link_proxy = GenericRelation(LinkProxy)
def __str__(self):