diff --git a/glance/db/sqlalchemy/models.py b/glance/db/sqlalchemy/models.py index 639dc6278f..8847a03294 100644 --- a/glance/db/sqlalchemy/models.py +++ b/glance/db/sqlalchemy/models.py @@ -27,10 +27,10 @@ from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import Enum -from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import ForeignKey from sqlalchemy import Index from sqlalchemy import Integer +from sqlalchemy.orm import declarative_base from sqlalchemy.orm import backref, relationship from sqlalchemy import sql from sqlalchemy import String diff --git a/glance/db/sqlalchemy/models_metadef.py b/glance/db/sqlalchemy/models_metadef.py index 3d822c7c7b..93ffd3bd5b 100644 --- a/glance/db/sqlalchemy/models_metadef.py +++ b/glance/db/sqlalchemy/models_metadef.py @@ -20,10 +20,10 @@ from oslo_db.sqlalchemy import models from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import DateTime -from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import ForeignKey from sqlalchemy import Index from sqlalchemy import Integer +from sqlalchemy.orm import declarative_base from sqlalchemy.orm import relationship from sqlalchemy import String from sqlalchemy import Text