Skip to content

Commit 632cf32

Browse files
committed
Fixed django#19391 -- Oracle specific failure in tests
The failure was caused by using None as a choice for a CharField. To avoid Oracle's "" <-> NULL handling the field type was changed to IntegerField.
1 parent c196e01 commit 632cf32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/regressiontests/admin_views/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,5 +662,5 @@ class Simple(models.Model):
662662
"""
663663

664664
class Choice(models.Model):
665-
choice = models.CharField(max_length=1, blank=True, null=True,
666-
choices=(('y','Yes'), ('n','No'), (None, 'No opinion')))
665+
choice = models.IntegerField(blank=True, null=True,
666+
choices=((1, 'Yes'), (0, 'No'), (None, 'No opinion')))

0 commit comments

Comments
 (0)