Commit db9c8fcc authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

redirect to the webapp details page after successful update

parent 294a3099
......@@ -215,8 +215,8 @@ class WebappUpdate(SuccessMessageMixin, LoginRequiredMixin, UpdateView):
error_message = 'The email doesn\'t belong to any registered user. Please enter a valid owner email address.'
def get_success_url(self):
"""If successful redirect to the same page"""
return reverse('main:webapp_update', args=(self.object.docker_name,))
"""If successful redirect to the webapp details page"""
return reverse('main:webapp_detail', args=(self.object.docker_name,))
def get_object(self):
"""Returns the object according to its docker name or a 404 error"""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment