mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.
This commit is contained in:
parent
06eec31970
commit
d992f4e3c2
34 changed files with 49 additions and 183 deletions
|
@ -805,19 +805,6 @@ class CaseExpressionTests(TestCase):
|
|||
transform=attrgetter('integer', 'null_boolean')
|
||||
)
|
||||
|
||||
def test_update_null_boolean_old(self):
|
||||
CaseTestModel.objects.update(
|
||||
null_boolean_old=Case(
|
||||
When(integer=1, then=True),
|
||||
When(integer=2, then=False),
|
||||
),
|
||||
)
|
||||
self.assertQuerysetEqual(
|
||||
CaseTestModel.objects.all().order_by('pk'),
|
||||
[(1, True), (2, False), (3, None), (2, False), (3, None), (3, None), (4, None)],
|
||||
transform=attrgetter('integer', 'null_boolean_old')
|
||||
)
|
||||
|
||||
def test_update_positive_big_integer(self):
|
||||
CaseTestModel.objects.update(
|
||||
positive_big_integer=Case(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue