mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #34226 -- Fixed QuerySet.select_related() with multiple FilteredRelations to the OneToOneField.
This commit is contained in:
@@ -24,3 +24,6 @@ class Pool(models.Model):
|
||||
class PoolStyle(models.Model):
|
||||
name = models.CharField(max_length=30)
|
||||
pool = models.OneToOneField(Pool, models.CASCADE)
|
||||
another_pool = models.OneToOneField(
|
||||
Pool, models.CASCADE, null=True, related_name="another_style"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user