Commit a6e30e87 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos

Add fragment type in views. Minor wording changes

 * Add fragment type in critical values that trigger comm with the device
 * Change wording from 'Suspending' to 'Deactivating'
parent 59e24952
......@@ -192,7 +192,7 @@ def edit_route(request, route_slug):
except:
pass
form = RouteForm(request_data, instance = route_edit)
critical_changed_values = ['source', 'destination', 'sourceport', 'destinationport', 'port', 'protocol', 'then']
critical_changed_values = ['source', 'destination', 'sourceport', 'destinationport', 'port', 'protocol', 'then', 'fragmenttype']
if form.is_valid():
changed_data = form.changed_data
route=form.save(commit=False)
......@@ -259,7 +259,7 @@ def delete_route(request, route_slug):
route.expires = datetime.date.today()
if not request.user.is_superuser:
route.applier = request.user
route.response = "Suspending"
route.response = "Deactivating"
route.save()
route.commit_delete()
requesters_address = request.META['HTTP_X_FORWARDED_FOR']
......
Markdown is supported
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