field=models.ForeignKey(default=0,help_text='The user, who create the image',on_delete=django.db.models.deletion.DO_NOTHING,related_name='created_images',to=settings.AUTH_USER_MODEL),
preserve_default=False,
),
migrations.AddField(
model_name='image',
name='uploaded_by_user',
field=models.BooleanField(default=True,editable=False,help_text='The field is false if the image created from instance'),
('system',models.CharField(help_text='Operating system type',max_length=50)),
('password',models.CharField(help_text='Original password of the instance',max_length=50)),
('time_of_suspend',models.DateTimeField(blank=True,help_text='After this point in time, the instance will be suspended')),
('time_of_delete',models.DateTimeField(blank=True,help_text='After this point in time, the instance will be deleted!')),
('deleted',models.BooleanField(default=False,help_text='Indicates if the instance is ready for garbage collection')),
('disks',models.ManyToManyField(help_text='Disks attached to instance',related_name='instance',to='image.Disk',verbose_name='disks')),
('flavor',models.ForeignKey(help_text='Reasources given to the vm',on_delete=django.db.models.deletion.CASCADE,related_name='instances',to='instance.Flavor',verbose_name='flavor')),
'permissions':(('create_instance','Can create a new VM.'),('create_template_from_instance','Can create template from instance.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.')),
field=models.ForeignKey(help_text='The base image of the vm',null=True,on_delete='DO_NOTHING',related_name='vm',to='template.ImageTemplate'),
field=models.ForeignKey(help_text='The base image of the vm',null=True,on_delete=django.db.models.deletion.DO_NOTHING,related_name='vm',to='template.ImageTemplate'),
field=models.ForeignKey(help_text='Reasources given to the vm',on_delete='CASCADE',related_name='instances',to='instance.Flavor',verbose_name='flavor'),
options={'permissions':(('create_instance','Can create a new VM.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.'))},
options={'default_permissions':(),'permissions':(('create_instance','Can create a new VM.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.'))},
options={'default_permissions':(),'permissions':(('create_instance','Can create a new VM.'),('create_template_from_instance','Can create template from instance.'),('use_instance','Can access the VM connection info.'),('operate_instance','Can use basic lifecycle methods of the VM.'),('administer_instance','Can delete VM.'),('access_console','Can access the graphical console of a VM.'),('change_resources','Can change resources of a VM.'),('manage_access','Can manage access rights for the VM.'),('config_ports','Can configure port forwards.'))},
('name',models.CharField(help_text='Human readable name of template.',max_length=100,verbose_name='name')),
('name',models.CharField(help_text='Human readable name of template.',max_length=100,verbose_name='name')),
('description',models.TextField(blank=True,help_text='Description of the template.',verbose_name='description')),
('description',models.TextField(blank=True,help_text='Description of the template.',verbose_name='description')),
('remote_ID',models.CharField(help_text='ID, which helps access the template.',max_length=40,unique=True,verbose_name='remote_ID')),
('created_at',models.DateTimeField(auto_now_add=True,help_text='Date, when the template created.')),
('created_at',models.DateTimeField(auto_now_add=True,help_text='Date, when the template created.')),
('network_id',models.CharField(blank=True,help_text='The new instance will be in this network.',max_length=100,null=True,verbose_name='network_id')),
('created_by',models.ForeignKey(help_text='The user, who create the template',on_delete=django.db.models.deletion.DO_NOTHING,related_name='created_templates',to=settings.AUTH_USER_MODEL)),
('flavor',models.ForeignKey(help_text='Resources given to the vm',on_delete=django.db.models.deletion.CASCADE,related_name='templates',to='instance.Flavor',verbose_name='flavor')),
('type',models.CharField(choices=[('U','User create the template from image'),('I','Template created from instance'),('P','"Pure" template')],default='U',max_length=10)),
('disk',models.ForeignKey(help_text='The disk where the template is located.',on_delete=django.db.models.deletion.CASCADE,related_name='templates',to='image.Disk')),
('disk',models.ForeignKey(help_text='The disk where the template is located.',on_delete=django.db.models.deletion.CASCADE,related_name='templates',to='image.Disk')),
field=models.ForeignKey(help_text='The user, who create the template',on_delete=django.db.models.deletion.DO_NOTHING,related_name='created_templates',to=settings.AUTH_USER_MODEL),
field=models.ForeignKey(default=1,help_text='Reasources given to the vm',on_delete='CASCADE',related_name='templates',to='instance.Flavor',verbose_name='flavor'),
field=models.CharField(choices=[('U','User create the template from image'),('I','Template created from instance'),('D','Default "Pure" template')],default='I',max_length=10),
field=models.CharField(choices=[('U','User create the template from image'),('I','Template created from instance'),('P','"Pure" template')],default='U',max_length=10),