Commit aa53508e by Kálmán Viktor

dashboard: remove interfaces with operations

parent 269d97c7
...@@ -2270,7 +2270,8 @@ class InterfaceDeleteView(DeleteView): ...@@ -2270,7 +2270,8 @@ class InterfaceDeleteView(DeleteView):
def delete(self, request, *args, **kwargs): def delete(self, request, *args, **kwargs):
self.object = self.get_object() self.object = self.get_object()
self.object.destroy() instance = self.object.instance
instance.remove_interface(interface=self.object, user=request.user)
success_url = self.get_success_url() success_url = self.get_success_url()
success_message = _("Interface successfully deleted!") success_message = _("Interface successfully deleted!")
......
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 sign in to comment