CORD-1250 Update to new Service/Tenancy models
Change-Id: Ie98caa95aed385413f9f28668fe3f3d5f4eab9e9
diff --git a/xos/attic/header.py b/xos/attic/header.py
index e483538..36d0a6f 100644
--- a/xos/attic/header.py
+++ b/xos/attic/header.py
@@ -1,5 +1,5 @@
from django.db import models
-from core.models import Service, XOSBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool
+from core.models import Service, XOSBase, Slice, Instance, ServiceInstance, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool
from core.models.xosbase import StrippedCharField
import os
from django.db import models, transaction
diff --git a/xos/attic/vtrtenant_model.py b/xos/attic/vtrtenant_model.py
index f2d24c3..2bd55cb 100644
--- a/xos/attic/vtrtenant_model.py
+++ b/xos/attic/vtrtenant_model.py
@@ -3,7 +3,7 @@
def __init__(self, *args, **kwargs):
vtr_services = VTRService.objects.all()
if vtr_services:
- self._meta.get_field("provider_service").default = vtr_services[0].id
+ self._meta.get_field("owner").default = vtr_services[0].id
super(VTRTenant, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):