mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #24605 -- Fixed incorrect reference to alias in subquery.
Thanks to charettes and priidukull for investigating the issue, and to kurevin for the report.
This commit is contained in:
committed by
Tim Graham
parent
8ca9bc5ec3
commit
355c5edd93
@@ -713,3 +713,18 @@ class Ticket23605B(models.Model):
|
||||
|
||||
class Ticket23605C(models.Model):
|
||||
field_c0 = models.FloatField()
|
||||
|
||||
|
||||
# db_table names have capital letters to ensure they are quoted in queries.
|
||||
class Individual(models.Model):
|
||||
alive = models.BooleanField()
|
||||
|
||||
class Meta:
|
||||
db_table = 'Individual'
|
||||
|
||||
|
||||
class RelatedIndividual(models.Model):
|
||||
related = models.ForeignKey(Individual, related_name='related_individual')
|
||||
|
||||
class Meta:
|
||||
db_table = 'RelatedIndividual'
|
||||
|
||||
Reference in New Issue
Block a user