mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #28101 -- Fixed a regression with nested __in subquery lookups and to_field.
Thanks Kristian Klette for the report and Tim for the help.
This commit is contained in:
parent
3f1ba76851
commit
8ef35468b6
4 changed files with 26 additions and 6 deletions
|
@ -69,7 +69,7 @@ class Annotation(models.Model):
|
|||
|
||||
class ExtraInfo(models.Model):
|
||||
info = models.CharField(max_length=100)
|
||||
note = models.ForeignKey(Note, models.CASCADE)
|
||||
note = models.ForeignKey(Note, models.CASCADE, null=True)
|
||||
value = models.IntegerField(null=True)
|
||||
|
||||
class Meta:
|
||||
|
@ -114,6 +114,10 @@ class Report(models.Model):
|
|||
return self.name
|
||||
|
||||
|
||||
class ReportComment(models.Model):
|
||||
report = models.ForeignKey(Report, models.CASCADE)
|
||||
|
||||
|
||||
class Ranking(models.Model):
|
||||
rank = models.IntegerField()
|
||||
author = models.ForeignKey(Author, models.CASCADE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue