mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Refs #28723 -- Fixed stale prefetch_related cache after add/remove.
Regression in 514b2c989a.
This commit is contained in:
parent
16ee53d7bb
commit
8b21878357
3 changed files with 18 additions and 2 deletions
|
|
@ -86,7 +86,8 @@ class Reader(models.Model):
|
|||
|
||||
|
||||
class BookReview(models.Model):
|
||||
book = models.ForeignKey(BookWithYear, models.CASCADE)
|
||||
# Intentionally does not have a related name.
|
||||
book = models.ForeignKey(BookWithYear, models.CASCADE, null=True)
|
||||
notes = models.TextField(null=True, blank=True)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue