|
|
@ -67,6 +67,10 @@ class StoryPartUpdate(LoginRequiredMixin, UpdateView):
|
|
|
|
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
context = super(StoryPartUpdate, self).get_context_data(**kwargs)
|
|
|
|
context = super(StoryPartUpdate, self).get_context_data(**kwargs)
|
|
|
|
|
|
|
|
context.update({
|
|
|
|
|
|
|
|
'current_round': self.object.turn_number + 1,
|
|
|
|
|
|
|
|
'total_rounds': self.object.part_of.part_of_round.number_of_rounds
|
|
|
|
|
|
|
|
})
|
|
|
|
context.update(self.kwargs)
|
|
|
|
context.update(self.kwargs)
|
|
|
|
return context
|
|
|
|
return context
|
|
|
|
|
|
|
|
|
|
|
|