fix redirect when remove one tag

This commit is contained in:
Cayo Puigdefabregas 2022-01-26 12:29:03 +01:00
parent fd4fc71bf5
commit 96a62e7072
1 changed files with 2 additions and 1 deletions

View File

@ -212,7 +212,8 @@ class TagDeviceDeleteView(View):
if form.validate_on_submit():
form.remove()
return flask.redirect(request.referrer)
next_url = url_for('inventory.devices.devicelist')
return flask.redirect(next_url)
return flask.render_template(self.template_name, form=form, referrer=request.referrer)