From f96c284e0a4bc94b065eea1227e45cfa17846f66 Mon Sep 17 00:00:00 2001 From: Elrond Date: Sat, 27 Apr 2013 17:01:09 +0200 Subject: [PATCH] Make uuid look like a uuid. If we really have to create a visible uuid (for a slug in this case), don't try to hide the fact that it is a uuid. So format it like a uuid. --- mediagoblin/db/migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index 9d1218fe..2c553396 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -273,7 +273,7 @@ def unique_collections_slug(db): existing_slugs[row.creator].append(row.slug) for row_id in slugs_to_change: - new_slug = uuid.uuid4().hex + new_slug = unicode(uuid.uuid4()) db.execute(collection_table.update(). where(collection_table.c.id == row_id). values(slug=new_slug)) -- 2.25.1