﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24343	UUID foreign key accessor returns inconsistent type	Tim Graham	nobody	"Current test failure on Oracle (and it's an issue on other backends but tests are skipped on other backends besides Oracle and PostgreSQL due to `@skipUnlessDBFeature(""can_defer_constraint_checks"")`:
{{{
Traceback (most recent call last):
  File ""/mnt/jenkinsdata/workspace/django-oracle/database/oracle11/python/python2.7/django/utils/functional.py"", line 15, in _curried
    return _curried_func(*(args + moreargs), **dict(kwargs, **morekwargs))
  File ""/mnt/jenkinsdata/workspace/django-oracle/database/oracle11/python/python2.7/tests/serializers_regress/tests.py"", line 479, in serializerTest
    func[1](self, pk, klass, datum)
  File ""/mnt/jenkinsdata/workspace/django-oracle/database/oracle11/python/python2.7/tests/serializers_regress/tests.py"", line 154, in fk_compare
    testcase.assertEqual(data, instance.data_id)
AssertionError: UUID('3f57e641-c3c7-4990-be67-f3207e4f5bd2') != u'3f57e641c3c74990be67f3207e4f5bd2'
}}}
Give this model:
{{{
class FKToUUID(models.Model):
    data = models.ForeignKey(UUIDData)
}}}

`obj.data_id` returns a string on all backends except PostgreSQL which returns a UUID. Might be related to the `has_native_uuid_field` database features flag."	Bug	closed	Database layer (models, ORM)	1.8alpha1	Release blocker	fixed		me@… cmawebsite@…	Accepted	1	0	0	0	0	0
