Reverse order
This commit is contained in:
parent
b01ed31e45
commit
a7df2411e0
|
@ -13,8 +13,8 @@ class TombolaView(TemplateView):
|
||||||
|
|
||||||
context['title'] = "Tombola Saper[list]popette"
|
context['title'] = "Tombola Saper[list]popette"
|
||||||
|
|
||||||
next_rewards = Reward.objects.filter(rewarded_by__isnull=True).order_by('order')
|
next_rewards = Reward.objects.filter(rewarded_by__isnull=True).order_by('order').reverse()
|
||||||
old_reward = Reward.objects.filter(rewarded_by__isnull=False).order_by('order')
|
old_reward = Reward.objects.filter(rewarded_by__isnull=False).order_by('order').reverse()
|
||||||
context['old_rewards'] = old_reward.all()
|
context['old_rewards'] = old_reward.all()
|
||||||
if old_reward.exists():
|
if old_reward.exists():
|
||||||
context['previous_reward'] = old_reward.last()
|
context['previous_reward'] = old_reward.last()
|
||||||
|
|
Loading…
Reference in New Issue