diff --git a/atlas/modeles/entities/tMaillesTerritoire.py b/atlas/modeles/entities/tMaillesTerritoire.py index 8a8a7c3b..0e8a8351 100644 --- a/atlas/modeles/entities/tMaillesTerritoire.py +++ b/atlas/modeles/entities/tMaillesTerritoire.py @@ -3,7 +3,7 @@ from sqlalchemy import Column, Integer, MetaData, Table, Text from sqlalchemy.ext.declarative import declarative_base -from atlas.utils import engine +from atlas.env import db metadata = MetaData() Base = declarative_base() @@ -18,5 +18,5 @@ class TMaillesTerritoire(Base): Column("geojson_maille", Text), schema="atlas", autoload=True, - autoload_with=engine, + autoload_with=db.engine, )