From 98ba975eec0089dd981a4a8616192dc193b88d5b Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 27 Jun 2013 12:00:47 -0400 Subject: [PATCH] remove conflicting "order by" --- frontend/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/views.py b/frontend/views.py index 3cca6b75..0464b459 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -681,7 +681,7 @@ class WorkListView(FilterableListView): context['ungluers'] = userlists.work_list_users(qs,5) context['facet'] = self.kwargs.get('facet','') works_unglued = qs.exclude(editions__ebooks__isnull=True).distinct() | qs.filter(campaigns__status='SUCCESSFUL').distinct() - context['works_unglued'] = works_unglued.order_by('-campaigns__status', 'campaigns__deadline', '-num_wishes')[:self.max_works] + context['works_unglued'] = works_unglued[:self.max_works] context['works_active'] = qs.filter(campaigns__status='ACTIVE').distinct()[:self.max_works] context['works_wished'] = qs.exclude(editions__ebooks__isnull=False).exclude(campaigns__status='ACTIVE').exclude(campaigns__status='SUCCESSFUL').distinct()[:self.max_works]