1
0
mirror of https://github.com/django/django.git synced 2025-03-20 22:30:45 +00:00

[1.5.x] 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.

Backpatch of 632cf32b43609f7d674c81f81f01eb9e4a059f1f
This commit is contained in:
Anssi Kääriäinen 2012-12-04 22:49:02 +02:00
parent db455d6ff9
commit 8c099ec3ec

View File

@ -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')))