Added declarative base
authorThierry Florac <thierry.florac@onf.fr>
Wed, 01 Jul 2015 10:14:21 +0200
changeset 8 41d8e2491ec9
parent 7 39cc33c77acb
child 9 d114654e7423
Added declarative base
src/pyams_alchemy/__init__.py
--- a/src/pyams_alchemy/__init__.py	Wed Jun 17 09:54:54 2015 +0200
+++ b/src/pyams_alchemy/__init__.py	Wed Jul 01 10:14:21 2015 +0200
@@ -17,6 +17,10 @@
 _ = TranslationStringFactory('pyams_alchemy')
 
 
+from sqlalchemy.ext.declarative import declarative_base
+Base = declarative_base()
+
+
 def includeme(config):
     """Pyramid include"""