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

Closes #760: Redirect user back to device view after deleting an assigned IP address

This commit is contained in:
Jeremy Stretch
2017-01-18 12:25:07 -05:00
parent fc7f88d2a2
commit 9ff59ab686
3 changed files with 16 additions and 5 deletions

View File

@ -386,7 +386,12 @@ class BootstrapMixin(forms.BaseForm):
class ConfirmationForm(BootstrapMixin, forms.Form):
"""
A generic confirmation form. The form is not valid unless the confirm field is checked. An optional return_url can
be specified to direct the user to a specific URL after the action has been taken.
"""
confirm = forms.BooleanField(required=True)
return_url = forms.CharField(required=False, widget=forms.HiddenInput())
class BulkEditForm(forms.Form):