|
|
|
@ -61,7 +61,12 @@ class StoryPartUpdate(LoginRequiredMixin, UpdateView):
|
|
|
|
|
model = StoryPart
|
|
|
|
|
fields = ['text']
|
|
|
|
|
template_name = 'writingtogether/story_part.html'
|
|
|
|
|
success_url = reverse_lazy('writing:index')
|
|
|
|
|
|
|
|
|
|
def get_success_url(self):
|
|
|
|
|
return reverse(
|
|
|
|
|
'writing:redirect_story_part',
|
|
|
|
|
kwargs={'story_round_pk': self.object.part_of.part_of_round.pk}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
|
context = super(StoryPartUpdate, self).get_context_data(**kwargs)
|
|
|
|
|