From de1ba29705ddbf31ea49164441802298e8f5a36d Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Mon, 14 Nov 2016 17:07:45 -0500 Subject: [PATCH] Fix to migration. --- sfm/ui/migrations/0007_auto_20161114_1637.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfm/ui/migrations/0007_auto_20161114_1637.py b/sfm/ui/migrations/0007_auto_20161114_1637.py index 04226c8a..fe59d4e3 100644 --- a/sfm/ui/migrations/0007_auto_20161114_1637.py +++ b/sfm/ui/migrations/0007_auto_20161114_1637.py @@ -9,7 +9,7 @@ def gen_uuid(apps, schema_editor): MyModel = apps.get_model('ui', 'Credential') for row in MyModel.objects.all(): - row.credential_id = uuid.uuid4() + row.credential_id = uuid.uuid4().hex row.save()