Fix condition check for musikgame existence in group detail template; add results section in musikgame detail template; update order range in GameCreateView
This commit is contained in:
parent
78e5be580b
commit
c320015205
3 changed files with 36 additions and 2 deletions
|
@ -170,7 +170,7 @@ class GameCreateView(LoginRequiredMixin, CreateView):
|
|||
|
||||
pm_list = list(zip(players, musics))
|
||||
random.shuffle(pm_list)
|
||||
for (player, music), order in zip(pm_list, range(len(pm_list))):
|
||||
for (player, music), order in zip(pm_list, range(1, len(pm_list) + 1)):
|
||||
music.blacklisted = True
|
||||
music.save()
|
||||
models.MusicGameOrder.objects.create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue