Skip to content

Commit

Permalink
import EncryptedType correctly from sqlalchemy_utils
Browse files Browse the repository at this point in the history
Signed-off-by: Dinika Saxena <[email protected]>
  • Loading branch information
Dinika Saxena committed Feb 19, 2018
1 parent 2c877c1 commit 25d833a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def upgrade():
sa.Column('token_type', sa.String(length=40), nullable=False),
sa.Column(
'access_token',
sqlalchemy_utils.types.encrypted.EncryptedType(),
sqlalchemy_utils.types.encrypted.encrypted_type.EncryptedType(),
nullable=False),
sa.Column('secret', sa.Text(), nullable=False),
sa.ForeignKeyConstraint(
Expand Down
3 changes: 1 addition & 2 deletions invenio_oauthclient/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
from invenio_db import db
from sqlalchemy.ext.mutable import MutableDict
from sqlalchemy.orm import backref
from sqlalchemy_utils import JSONType
from sqlalchemy_utils.types.encrypted import EncryptedType
from sqlalchemy_utils import EncryptedType, JSONType


def _secret_key():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
'invenio-accounts>=1.0.0b7',
'invenio-mail>=1.0.0b1',
'six>=1.9',
'sqlalchemy-utils>=0.32.0',
'sqlalchemy-utils>=0.33.0',
'uritools>=1.0.1',
]

Expand Down

0 comments on commit 25d833a

Please sign in to comment.