Skip to content

Commit 6f8f756

Browse files
committed
feature: Update the konch config to cater update in flask-sqlalchemy
1 parent b110dd8 commit 6f8f756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.konchrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import konch
22

3-
from flask_sqlalchemy import _BoundDeclarativeMeta
3+
from flask_sqlalchemy import DefaultMeta
44

55
from app import make_app
66
import db_models
@@ -9,7 +9,7 @@ import db_models
99
# 'context_format', 'ipy_extensions', 'ipy_autoreload',
1010
# 'ipy_colors', 'ipy_highlighting_style'
1111
curr_app = make_app()
12-
model_instance_list = [db_models.__dict__.get(a) for a in dir(db_models) if isinstance(db_models.__dict__.get(a), _BoundDeclarativeMeta)]
12+
model_instance_list = [db_models.__dict__.get(a) for a in dir(db_models) if isinstance(db_models.__dict__.get(a), DefaultMeta)]
1313
model_context_dict = {x.__name__: x for x in model_instance_list}
1414

1515
context_dict = {

0 commit comments

Comments
 (0)