Oracle BooleanFields display 1/0 instead of True/False
|Reported by:||Ben Khoo||Owned by:||jacob|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Firstly congratulations on the Oracle support. I have been using it for the last few months and it is looking really good.
I have noticed a bug in the Oracle handling of BooleanFields. When querying a boolean attribute of an object, I am receiving 1 or 0 instead of True and False. An example is showed below.
In : from django.contrib.auth.models import * In : u = User.objects.all() In : u.is_superuser Out: 1 In : u.is_staff Out: 0 In : u.is_staff = True In : u.is_staff Out: True In : u.save() In : u.is_staff Out: True In : p = User.objects.get(pk=u.id) In : p.is_staff Out: 1 In : p.is_superuser Out: 1
This is mentioned briefly in ticket #87 however it has long since been closed.