1
0
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:
Luke Plant
2012-06-06 14:17:32 +01:00
parent f0664dc8ae
commit 4fea46a030
3 changed files with 16 additions and 3 deletions

View File

@@ -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