diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 647916e360..9a64d51766 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -141,7 +141,6 @@ class NullBooleanModel(models.Model): class BooleanModel(models.Model): bfield = models.BooleanField() - string = models.CharField(max_length=10, default="abc") class DateTimeModel(models.Model): diff --git a/tests/model_fields/test_booleanfield.py b/tests/model_fields/test_booleanfield.py index 7e92d99fab..30eb009eb7 100644 --- a/tests/model_fields/test_booleanfield.py +++ b/tests/model_fields/test_booleanfield.py @@ -71,11 +71,6 @@ class BooleanFieldTests(TestCase): b4.refresh_from_db() self.assertIs(b4.nbfield, False) - # When an extra clause exists, the boolean conversions are applied with - # an offset (#13293). - b5 = BooleanModel.objects.extra(select={"string_col": "string"})[0] - self.assertNotIsInstance(b5.pk, bool) - def test_select_related(self): """ Boolean fields retrieved via select_related() should return booleans.