mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #28988 -- Fixed queries when a GenericRelation is used with multi-table inheritance.
This commit is contained in:
parent
b639bcc250
commit
4ab027b944
4 changed files with 22 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue