Fix a DeprecationWarning by using LargeBinary instead of Binary

This commit is contained in:
Jacopo Notarstefano
2017-03-12 09:40:54 +01:00
parent a5ef06f125
commit 96191dde75

View File

@@ -3,7 +3,7 @@ import base64
import datetime
import six
from sqlalchemy.types import Binary, String, TypeDecorator
from sqlalchemy.types import LargeBinary, String, TypeDecorator
from ..exceptions import ImproperlyConfigured
from .scalar_coercible import ScalarCoercible
@@ -199,7 +199,7 @@ class EncryptedType(TypeDecorator, ScalarCoercible):
"""
impl = Binary
impl = LargeBinary
def __init__(self, type_in=None, key=None, engine=None, **kwargs):
"""Initialization."""