Commit 522799dc by Kálmán Viktor

dashboard: add default samba password

parent 4aeb7471
...@@ -45,6 +45,8 @@ from vm.tasks.agent_tasks import add_keys, del_keys ...@@ -45,6 +45,8 @@ from vm.tasks.agent_tasks import add_keys, del_keys
logger = getLogger(__name__) logger = getLogger(__name__)
pwgen = User.objects.make_random_password
class Favourite(Model): class Favourite(Model):
instance = ForeignKey("vm.Instance") instance = ForeignKey("vm.Instance")
...@@ -100,7 +102,9 @@ class Profile(Model): ...@@ -100,7 +102,9 @@ class Profile(Model):
verbose_name=_('Samba password'), verbose_name=_('Samba password'),
help_text=_( help_text=_(
'Generated password for accessing store from ' 'Generated password for accessing store from '
'Windows.')) 'Windows.'),
default=pwgen,
)
disk_quota = IntegerField( disk_quota = IntegerField(
verbose_name=_('disk quota'), verbose_name=_('disk quota'),
default=2048, default=2048,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment