diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py index 4b48616e99..9c0f888a99 100644 --- a/tests/regressiontests/model_fields/tests.py +++ b/tests/regressiontests/model_fields/tests.py @@ -208,7 +208,7 @@ class BooleanFieldTests(unittest.TestCase): # Verify that when an extra clause exists, the boolean # conversions are applied with an offset b5 = BooleanModel.objects.all().extra( - select={'string_length': 'LENGTH(string)'})[0] + select={'string_col': 'string'})[0] self.assertFalse(isinstance(b5.pk, bool)) class ChoicesTests(test.TestCase):