Compare commits
3 Commits
ed7b4b1c11
...
621fef14f5
Author | SHA1 | Date |
---|---|---|
Gesche | 621fef14f5 | |
Gesche | 04e10d3b23 | |
Gesche | f8f7eb09ee |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
@ -16,5 +16,8 @@
|
||||||
<br>
|
<br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
<a href="{% url 'writing:index' %}">Zurück</a>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -61,7 +61,12 @@ class StoryPartUpdate(LoginRequiredMixin, UpdateView):
|
||||||
model = StoryPart
|
model = StoryPart
|
||||||
fields = ['text']
|
fields = ['text']
|
||||||
template_name = 'writingtogether/story_part.html'
|
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):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(StoryPartUpdate, self).get_context_data(**kwargs)
|
context = super(StoryPartUpdate, self).get_context_data(**kwargs)
|
Loading…
Reference in New Issue