mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #18309 - Prefetch related does not work for fkey to multitable inherited model
Thanks to milosu for the report, tests and initial patch.
This commit is contained in:
@@ -68,6 +68,9 @@ class Reader(models.Model):
|
||||
class Meta:
|
||||
ordering = ['id']
|
||||
|
||||
class BookReview(models.Model):
|
||||
book = models.ForeignKey(BookWithYear)
|
||||
notes = models.TextField(null=True, blank=True)
|
||||
|
||||
## Models for default manager tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user