From dd6d015fc0535f77a1afc7931be597c8a5a2e2cb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 9 Oct 2011 13:49:21 +0000 Subject: [PATCH] typo --- pandora/event/views.py | 2 +- pandora/item/views.py | 2 +- pandora/place/views.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/event/views.py b/pandora/event/views.py index d3de22dee..e09841469 100644 --- a/pandora/event/views.py +++ b/pandora/event/views.py @@ -171,7 +171,7 @@ Positions qs = query['qs'].distinct() if 'keys' in data: qs = qs[query['range'][0]:query['range'][1]] - qs = qs.select_realed() + qs = qs.select_related() response['data']['items'] = [p.json(request.user) for p in qs] elif 'position' in query: ids = [i.get_id() for i in qs] diff --git a/pandora/item/views.py b/pandora/item/views.py index 69795ec60..d753e3ebb 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -249,7 +249,7 @@ Positions if 'accessed' in _p: qs = qs.annotate(a=Max('accessed__access')) if 'viewed' in _p or 'popularity' in _p or 'accessed' in _p: - qs = qs.select_realed() + qs = qs.select_related() response['data']['items'] = [only_p_sums(m) for m in qs] else: response['data']['items'] = [only_p(m['json']) for m in qs.values('json')] diff --git a/pandora/place/views.py b/pandora/place/views.py index aeb57c0e8..52ddc16de 100644 --- a/pandora/place/views.py +++ b/pandora/place/views.py @@ -246,7 +246,7 @@ Positions qs = order_query(query['qs'], query['sort']) qs = qs.distinct() if 'keys' in data: - qs = qs.select_realed() + qs = qs.select_related() qs = qs[query['range'][0]:query['range'][1]] response['data']['items'] = [p.json(data['keys'], request.user) for p in qs] elif 'position' in query: