﻿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
26264	prefetch_related() crashes with values_list(flat=True)	Dotan Agmon	Attila Tovt	"Assuming these models:

{{{#!python
class Temp(models.Model):
    pass


class TempUuid(models.Model):
    uuid = models.UUIDField(default=uuid.uuid4, editable=False)
    temp = models.ForeignKey(Temp)
}}}

The result of the following code:
{{{#!python
>>> temp = Temp.objects.create()
>>> TempUuid.objects.create(temp=temp)
>>> TempUuid.objects.prefetch_related('temp').values_list('uuid', flat=True)
}}}
is:
{{{#!python
TypeError: UUID objects are immutable
}}}

Note that there's no exception when removing the `flat=True`. "	Bug	closed	Database layer (models, ORM)	1.8	Normal	fixed			Accepted	1	0	0	0	0	0
