Compare commits
No commits in common. "621fef14f5115b30dd8dc7ddfaf277638c53f5b1" and "ed7b4b1c110530ff689fd3cc690e37be766c6124" have entirely different histories.
621fef14f5
...
ed7b4b1c11
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
@ -16,8 +16,5 @@
|
|||
<br>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<a href="{% url 'writing:index' %}">Zurück</a>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -61,12 +61,7 @@ class StoryPartUpdate(LoginRequiredMixin, UpdateView):
|
|||
model = StoryPart
|
||||
fields = ['text']
|
||||
template_name = 'writingtogether/story_part.html'
|
||||
|
||||
def get_success_url(self):
|
||||
return reverse(
|
||||
'writing:redirect_story_part',
|
||||
kwargs={'story_round_pk': self.object.part_of.part_of_round.pk}
|
||||
)
|
||||
success_url = reverse_lazy('writing:index')
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(StoryPartUpdate, self).get_context_data(**kwargs)
|
Loading…
Reference in New Issue