mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +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:
parent
8ca9bc5ec3
commit
355c5edd93
5 changed files with 55 additions and 9 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue