Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2a2b8257
authored
Aug 25, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: Fix model texts
parent
4c0232d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
circle/dashboard/models.py
+16
-4
No files found.
circle/dashboard/models.py
View file @
2a2b8257
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment