Stop unicode conversion warning during dbupdate.
authorElrond <elrond+git.commit@samba-tng.org>
Sat, 24 Nov 2012 21:57:46 +0000 (22:57 +0100)
committerElrond <elrond+git.commit@samba-tng.org>
Sat, 24 Nov 2012 21:57:46 +0000 (22:57 +0100)
Just force the passed in name to MigrationManager() to unicode.

mediagoblin/db/sql/util.py

index 74b5d73ed631685c8842260565e5d2efefa22bb6..bd92393cb5769a487e2503a71e71c096b2697e8b 100644 (file)
@@ -39,7 +39,7 @@ class MigrationManager(object):
          - migration_registry: where we should find all migrations to
            run
         """
-        self.name = name
+        self.name = unicode(name)
         self.models = models
         self.session = session
         self.migration_registry = migration_registry