('name',models.CharField(help_text='Human readable name of instance',max_length=100)),
('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')),
('system_type',models.CharField(choices=[('LINUX','The system based on Linux'),('WINDOWS','Windows based system')],help_text='The base name of the operating system',max_length=50,verbose_name='operating_system')),
('distro',models.CharField(blank=True,help_text='The specific name and version of the installed OSe. g. Win 7, Ubuntu 18.04',max_length=100,verbose_name='system distribution')),
('access_protocol',models.CharField(choices=[('rdp','Remote Desktop Protocol'),('ssh','Secure Shell')],help_text='The protocol which used to connect to the machinethat created from this template',max_length=50,verbose_name='remote_access_protocol')),
('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')),
('deleted',models.BooleanField(default=False,help_text='Indicates if the instance is ready for garbage collection')),
('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')),
('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.')),
'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')),
('description',models.TextField(blank=True,help_text='Description of the template.',verbose_name='description')),
('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)),
('type',models.CharField(choices=[('SYSTEM','Common templates provided by the system.'),('IMAGE','Template created from image by a user'),('INSTANCE','Template created from instance by a user')],default='SYSTEM',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')),