Skip to content

Commit

Permalink
Update new test for negated meaning of null in booleancolumn
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Apr 10, 2018
1 parent 5229776 commit 8f424eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/columns/test_booleancolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ def test_should_use_nullability_for_booloanfield(self):
'''
Django 2.1 supports null=(True|False) for BooleanField.
'''
class BoolModel(models.Model):
class BoolModel2(models.Model):
field = models.BooleanField(null=True)

class Meta:
app_label = 'django_tables2_test'

class Table(tables.Table):
class Meta:
model = BoolModel
model = BoolModel2

column = Table.base_columns['field']
self.assertEqual(type(column), tables.BooleanColumn)
self.assertEqual(column.empty_values, ())
self.assertEqual(column.empty_values, (None, ''))

def test_should_be_used_for_nullbooleanfield(self):
class NullBoolModel(models.Model):
Expand Down

0 comments on commit 8f424eb

Please sign in to comment.