1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #23797 -- Fixed QuerySet.exclude() when rhs is a nullable column.

This commit is contained in:
Jacob Walls
2020-06-27 17:41:32 -04:00
committed by Mariusz Felisiak
parent b7b7df5fbc
commit 512da9d585
4 changed files with 31 additions and 7 deletions

View File

@@ -142,6 +142,7 @@ class Cover(models.Model):
class Number(models.Model):
num = models.IntegerField()
other_num = models.IntegerField(null=True)
another_num = models.IntegerField(null=True)
def __str__(self):
return str(self.num)