mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Removed obsolete assertions in BooleanFieldTests.test_return_type().
Added ine9bbdb39de
. Obsolete sincee9103402c0
.
This commit is contained in:
parent
00639dbd6d
commit
aaf00450d2
@ -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):
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user