whoops ordering queryset on wrong thing
parent
f804a0df66
commit
9661c97bf3
|
@ -146,7 +146,7 @@ def home(request, landing=False):
|
|||
"""
|
||||
top_campaigns = models.Campaign.objects.filter(status="ACTIVE").order_by('left')[:4]
|
||||
|
||||
most_wished = models.Work.objects.order_by('-wishes')[:4]
|
||||
most_wished = models.Work.objects.order_by('-num_wishes')[:4]
|
||||
|
||||
unglued_books = models.Work.objects.filter(campaigns__status="SUCCESSFUL").order_by('-campaigns__deadline')
|
||||
|
||||
|
|
Loading…
Reference in New Issue