mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +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 632cf32b43
This commit is contained in:
@@ -662,5 +662,5 @@ class Simple(models.Model):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
class Choice(models.Model):
|
class Choice(models.Model):
|
||||||
choice = models.CharField(max_length=1, blank=True, null=True,
|
choice = models.IntegerField(blank=True, null=True,
|
||||||
choices=(('y','Yes'), ('n','No'), (None, 'No opinion')))
|
choices=((1, 'Yes'), (0, 'No'), (None, 'No opinion')))
|
||||||
|
|||||||
Reference in New Issue
Block a user