mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Fixed #30628 -- Adjusted expression identity to differentiate bound fields.
Expressions referring to different bound fields should not be
considered equal.
Thanks Julien Enselme for the detailed report.
Regression in bc7e288ca9
.
This commit is contained in:
parent
1bbf77bea5
commit
ee6e93ec87
6 changed files with 37 additions and 5 deletions
|
@ -148,6 +148,7 @@ class Cover(models.Model):
|
|||
|
||||
class Number(models.Model):
|
||||
num = models.IntegerField()
|
||||
other_num = models.IntegerField(null=True)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.num)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue