fixing empty slideshow for is_preview
parent
d0811f4d27
commit
201ff7b38f
|
@ -64,7 +64,7 @@ def slideshow(max):
|
|||
|
||||
if is_preview:
|
||||
# on the preview site there are no active campaigns, so we should show most-wished books instead
|
||||
worklist = models.Work.objects.order_by('-num_wishes')[:count]
|
||||
worklist = models.Work.objects.order_by('-num_wishes')[:max]
|
||||
else:
|
||||
worklist = []
|
||||
while i<max and count>0:
|
||||
|
|
Loading…
Reference in New Issue