registered VM types model in the admin

This commit is contained in:
Levi 2016-04-17 20:05:39 -05:00
commit 3015399692
5 changed files with 49 additions and 5 deletions

View file

@ -51,4 +51,5 @@ class Command(BaseCommand):
def handle(self, *args, **options):
data = self.get_data()
[VirtualMachineType.objects.create(**data[key]) for key in data.keys()]
[VirtualMachineType.objects.create(hosting_company=key, **data[key])
for key in data.keys()]