from core.models import NetworkInstance | |
from observer.deleter import Deleter | |
class NetworkInstanceDeleter(Deleter): | |
model='NetworkInstance' | |
def call(self, pk): | |
network_instance = NetworkInstances.objects.get(pk=pk) | |
# handle openstack delete | |
network_instance.delete() | |