1
0
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:
Anssi Kääriäinen
2015-04-16 08:39:31 +03:00
committed by Tim Graham
parent 8ca9bc5ec3
commit 355c5edd93
5 changed files with 55 additions and 9 deletions

View File

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