blob: f94275f3c172f5c368128144e9dabeeac806f8dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- a/griffith-0.13/lib/db/validators.py 2018-09-02 00:37:03.052248916 +0300
+++ b/griffith-0.13/lib/db/validators.py 2018-09-02 00:37:22.462248580 +0300
@@ -23,7 +23,13 @@
import logging
-from sqlalchemy.orm.interfaces import AttributeExtension, InstrumentationManager
+from sqlalchemy.orm.interfaces import AttributeExtension
+try:
+ # sql alchemy 0.8 (and above)
+ from sqlalchemy.ext.instrumentation import InstrumentationManager
+except:
+ # sql alchemy 0.7
+ from sqlalchemy.orm.interfaces import InstrumentationManager
from sqlalchemy.orm import ColumnProperty
from sqlalchemy.types import String
|