registered VM types model in the admin
This commit is contained in:
parent
368cfcecd1
commit
3015399692
5 changed files with 49 additions and 5 deletions
|
|
@ -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()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue