projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4211d03
)
Stop unicode conversion warning during dbupdate.
author
Elrond
<elrond+git.commit@samba-tng.org>
Sat, 24 Nov 2012 21:57:46 +0000
(22:57 +0100)
committer
Elrond
<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
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/db/sql/util.py
b/mediagoblin/db/sql/util.py
index 74b5d73ed631685c8842260565e5d2efefa22bb6..bd92393cb5769a487e2503a71e71c096b2697e8b 100644
(file)
--- a/
mediagoblin/db/sql/util.py
+++ b/
mediagoblin/db/sql/util.py
@@
-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