From 632cf32b43609f7d674c81f81f01eb9e4a059f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Tue, 4 Dec 2012 22:49:02 +0200 Subject: [PATCH] Fixed #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. --- tests/regressiontests/admin_views/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index 003b6ce8b2..c641cfc0e6 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -662,5 +662,5 @@ class Simple(models.Model): """ class Choice(models.Model): - choice = models.CharField(max_length=1, blank=True, null=True, - choices=(('y','Yes'), ('n','No'), (None, 'No opinion'))) + choice = models.IntegerField(blank=True, null=True, + choices=((1, 'Yes'), (0, 'No'), (None, 'No opinion')))