mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.7.x] Fixed #24605 -- Fixed incorrect reference to alias in subquery.
Thanks to charettes and priidukull for investigating the issue, and to
kurevin for the report.
Backport of 355c5edd93 from master
This commit is contained in:
committed by
Tim Graham
parent
bcb536004a
commit
c3a9820251
@@ -690,3 +690,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(default=False)
|
||||
|
||||
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