Commit 2a2b8257 by Guba Sándor

dashboard: Fix model texts

parent 4c0232d4
...@@ -105,13 +105,25 @@ class ConnectCommand(Model): ...@@ -105,13 +105,25 @@ class ConnectCommand(Model):
user = ForeignKey(User, related_name='command_set') user = ForeignKey(User, related_name='command_set')
access_method = CharField(max_length=10, choices=ACCESS_METHODS, access_method = CharField(max_length=10, choices=ACCESS_METHODS,
verbose_name=_('access method'), verbose_name=_('access method'),
help_text=_('Primary remote access method.')) help_text=_('Type of the remote access method.'))
application = CharField(max_length="128", verbose_name=_('application'), application = CharField(max_length="128", verbose_name=_('application'),
help_text=_( help_text=_(
'Application name to use for this type ' 'Name of the application used for '
'of connection protocol.')) 'remote connection. '
'This will be the value of the '
'%(app)s parameter.'))
template = CharField(blank=True, null=True, max_length=256, template = CharField(blank=True, null=True, max_length=256,
help_text=_('Template for connection command.')) verbose_name=_('command template'),
help_text=_('Template for connection command string. '
'Available parameters are: '
'username, password, '
'host, port, app. Example: sshpass '
'-p %(password)s %(app)s -o '
'StrictHostKeyChecking=no %(username)s@'
'%(host)s -p %(port)s'))
def __unicode__(self):
return self.template
class Profile(Model): class Profile(Model):
......
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