Fixed apply url for motion poll update view. Fixed #1489.

This commit is contained in:
Norman Jäckel 2015-07-10 14:42:20 +02:00
parent 4b4522f3f8
commit 70edfe6d87

View File

@ -615,6 +615,11 @@ class PollUpdateView(PollMixin, PollFormView):
template_name = 'motion/motionpoll_form.html'
def get_apply_url(self):
return reverse(
'motionpoll_update',
kwargs={'pk': self.kwargs['pk'], 'poll_number': self.kwargs['poll_number']})
def get_context_data(self, **kwargs):
"""
Return the template context.