models: use unicode and not varchar

This commit is contained in:
Jérôme Schneider 2014-06-04 14:06:52 +02:00
parent 334b70eed5
commit d249d6af22
1 changed files with 2 additions and 2 deletions

View File

@ -10,14 +10,14 @@ from sqlalchemy import ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.mutable import Mutable
from sqlalchemy.orm import column_property, relationship, backref
from sqlalchemy.types import TypeDecorator, VARCHAR
from sqlalchemy.types import TypeDecorator, Unicode
Base = declarative_base()
class JSONEncodedDict(TypeDecorator):
"Represents an immutable structure as a json-encoded string."
impl = VARCHAR
impl = Unicode
def process_bind_param(self, value, dialect):
if value is not None: