move some urls around
This commit is contained in:
parent
a38f15945e
commit
f7caaf2450
@ -1,12 +1,12 @@
|
||||
from django.conf.urls import patterns, url
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'events/(?P<league_id>\d+)/$', 'fowl.game.views.events',
|
||||
name='events'),
|
||||
url(r'league/(?P<league_id>\d+)/$', 'fowl.game.views.league',
|
||||
name='league'),
|
||||
url(r'league/(?P<league_id>\d+)/events/$', 'fowl.game.views.events',
|
||||
name='events'),
|
||||
url(r'^league/(?P<league_id>\d+)/roster/$', 'fowl.game.views.roster',
|
||||
name='roster'),
|
||||
url(r'^edit_event/(?P<event>\d+|new)/$', 'fowl.game.views.edit_event',
|
||||
name='edit_event'),
|
||||
url(r'^roster/(?P<league_id>\d+)/$', 'fowl.game.views.roster',
|
||||
name='roster'),
|
||||
)
|
||||
|
@ -85,12 +85,11 @@ def league(request, league_id):
|
||||
'league': league,
|
||||
'leagues': leagues
|
||||
}
|
||||
teams = list(Team.objects.filter(league__id=league_id)
|
||||
.prefetch_related('stars'))
|
||||
teams = list(Team.objects.filter(league__id=league_id))
|
||||
context['teams'] = teams
|
||||
context['star_sets'] = izip_longest(*(team.stars.all().order_by("division")
|
||||
for team in teams))
|
||||
return render(request, "stables.html", context)
|
||||
return render(request, "league.html", context)
|
||||
|
||||
|
||||
def roster(request, league_id):
|
||||
|
Loading…
Reference in New Issue
Block a user