From 49f5bf580f42c75a40a6cb6ed4bcfc08803604a0 Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Tue, 11 Jun 2013 13:07:15 +0300 Subject: [PATCH] Fixed QuerySorter --- sqlalchemy_utils/functions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sqlalchemy_utils/functions.py b/sqlalchemy_utils/functions.py index ea8c4ca..6fea131 100644 --- a/sqlalchemy_utils/functions.py +++ b/sqlalchemy_utils/functions.py @@ -7,8 +7,9 @@ from sqlalchemy.sql.expression import desc, asc class QuerySorter(object): - entities = [] - labels = [] + def __init__(self): + self.entities = [] + self.labels = [] def inspect_labels_and_entities(self): for entity in self.query._entities: