diff --git a/accounts/migrations/0004_userinstance_is_vnc.py b/accounts/migrations/0004_userinstance_is_vnc.py new file mode 100644 index 0000000..9c1c9b8 --- /dev/null +++ b/accounts/migrations/0004_userinstance_is_vnc.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('accounts', '0003_usersshkey'), + ] + + operations = [ + migrations.AddField( + model_name='userinstance', + name='is_vnc', + field=models.BooleanField(default=False), + ), + ] diff --git a/accounts/models.py b/accounts/models.py index 15cedee..20efc6f 100644 --- a/accounts/models.py +++ b/accounts/models.py @@ -8,6 +8,7 @@ class UserInstance(models.Model): instance = models.ForeignKey(Instance) is_change = models.BooleanField(default=False) is_delete = models.BooleanField(default=False) + is_vnc = models.BooleanField(default=False) def __unicode__(self): return self.instance.name diff --git a/accounts/templates/account.html b/accounts/templates/account.html index b6a8b6c..c8d8c19 100644 --- a/accounts/templates/account.html +++ b/accounts/templates/account.html @@ -29,6 +29,7 @@