﻿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
24631	UUIDField makemigration error	Muhamad A.	nobody	"As I'm using UUIDField to generate a primary key, when I make migration it returns the following

{{{
ValueError: Cannot serialize: UUID('613d3463-b9d6-4bf1-9b62-1e31598b2700')
There are some values Django cannot serialize into migration files.
For more, see https://docs.djangoproject.com/en/1.8/topics/migrations/#migration-serializing
}}}

Using the following in models.py
{{{
from uuid import uuid4
uuid = models.UUIDField(primary_key=True, default=uuid4(), editable=False)
}}}

I managed to make this work by using default=uuid4().hex but the value in the migration file is that generated value"	Bug	closed	Migrations	1.8	Normal	invalid	migration		Unreviewed	0	0	0	0	0	0
