revert to stars, izipped by division
This commit is contained in:
parent
04698f0942
commit
b47f3e0eec
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user