aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-01-27 22:12:38 +0100
committerAlban Gruin2017-01-27 22:13:26 +0100
commit0253cd15092b580eecc7a711a2070920b2a90d66 (patch)
treee6b41d695891769701e7b0997e85b75ce80c505a
parentfa450f840641969cd3fea769300536ce603229cd (diff)
Problème de nom
-rw-r--r--db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/db.py b/db.py
index d8f92ef..df9ceda 100644
--- a/db.py
+++ b/db.py
@@ -17,8 +17,8 @@ class GroupedQuery(Query):
class GroupedQuerySet(QuerySet):
def __init__(self, model=None, query=None, using=None, hints=None):
- super(BetterQuerySet, self).__init__(model, query, using, hints)
- self.query = query or BetterQuery(self.model)
+ super(GroupedQuerySet, self).__init__(model, query, using, hints)
+ self.query = query or GroupedQuery(self.model)
def group_by(self, *field_names):
obj = self._clone()