dashboard: add default samba password
Showing
... | @@ -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.'), | ||
Please
register
or
sign in
to reply
|
|||
default=pwgen, | |||
) | |||
disk_quota = IntegerField( | disk_quota = IntegerField( | ||
verbose_name=_('disk quota'), | verbose_name=_('disk quota'), | ||
default=2048, | default=2048, | ||
... | ... |