revert to stars, izipped by division

This commit is contained in:
James Turk 2012-05-30 23:11:36 -04:00
parent 04698f0942
commit b47f3e0eec

View File

@ -159,8 +159,10 @@ def roster(request, league_id):
divisions = {'raw': [], 'smackdown': [], 'other': [], 'divas': []} divisions = {'raw': [], 'smackdown': [], 'other': [], 'divas': []}
for star in Star.objects.all(): for star in Star.objects.all():
divisions[star.division].append(star) divisions[star.division].append(star)
stars = izip_longest(divisions['raw'], divisions['smackdown'],
divisions['divas'], divisions['other'])
context = { context = {
'divisions': divisions, 'stars': stars,
'view': 'roster', 'view': 'roster',
'league': league, 'league': league,
'leagues': leagues 'leagues': leagues