1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #429: Correct redirection of user when adding a secret to a device

This commit is contained in:
Jeremy Stretch
2016-08-04 14:37:38 -04:00
parent 76b9a1c3af
commit 29c4394e64
2 changed files with 3 additions and 13 deletions

View File

@@ -92,7 +92,7 @@ def secret_add(request, pk):
messages.success(request, "Added new secret: {0}".format(secret))
if '_addanother' in request.POST:
return redirect('secrets:secret_add')
return redirect('dcim:device_addsecret', pk=device.pk)
else:
return redirect('secrets:secret', pk=secret.pk)