From b47f3e0eec0d4457cf4c0694f9a1a1be3217e46e Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 30 May 2012 23:11:36 -0400 Subject: [PATCH] revert to stars, izipped by division --- fowl/game/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fowl/game/views.py b/fowl/game/views.py index 59a49ab..f8caaa0 100644 --- a/fowl/game/views.py +++ b/fowl/game/views.py @@ -159,8 +159,10 @@ def roster(request, league_id): divisions = {'raw': [], 'smackdown': [], 'other': [], 'divas': []} for star in Star.objects.all(): divisions[star.division].append(star) + stars = izip_longest(divisions['raw'], divisions['smackdown'], + divisions['divas'], divisions['other']) context = { - 'divisions': divisions, + 'stars': stars, 'view': 'roster', 'league': league, 'leagues': leagues