From 050675e6844e6ab31da0c9e47355b3d2f4515c6c Mon Sep 17 00:00:00 2001 From: Adam Glasgall Date: Fri, 26 Apr 2013 21:54:42 -0400 Subject: [PATCH] SQLAlchemy renamed session.clear() to session.expunge_all() --- debian/changelog | 6 ++++++ python/database/models.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 31a68a9..068d0ef 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-database (0.2.8~glasgall10) precise; urgency=low + + * SQLAlchemy renamed session.clear() to session.expunge_all() + + -- Adam Glasgall Fri, 26 Apr 2013 21:54:05 -0400 + invirt-database (0.2.8~glasgall9) precise; urgency=low * SQLAlchemy no longer injects a .c attribute containing mapped fields diff --git a/python/database/models.py b/python/database/models.py index dc87e3b..80749ff 100644 --- a/python/database/models.py +++ b/python/database/models.py @@ -190,4 +190,4 @@ def clear_cache(): """Clear sqlalchemy's cache """ - session.clear() + session.expunge_all() -- 1.7.9.5