Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-sshkey
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3630f393
authored
Aug 14, 2013
by
Scott Duckworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove <code> surrounding userkey name
parent
4a53c3f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sshkey/views.py
+2
-2
No files found.
sshkey/views.py
View file @
3630f393
...
@@ -60,7 +60,7 @@ def userkey_add(request):
...
@@ -60,7 +60,7 @@ def userkey_add(request):
url
=
request
.
GET
.
get
(
'next'
,
default_redirect
)
url
=
request
.
GET
.
get
(
'next'
,
default_redirect
)
if
not
is_safe_url
(
url
=
url
,
host
=
request
.
get_host
()):
if
not
is_safe_url
(
url
=
url
,
host
=
request
.
get_host
()):
url
=
default_redirect
url
=
default_redirect
message
=
'SSH key
<code>
%
s</code>
was saved.'
%
userkey
.
name
message
=
'SSH key
%
s
was saved.'
%
userkey
.
name
messages
.
success
(
request
,
message
,
fail_silently
=
True
)
messages
.
success
(
request
,
message
,
fail_silently
=
True
)
return
HttpResponseRedirect
(
url
)
return
HttpResponseRedirect
(
url
)
else
:
else
:
...
@@ -85,7 +85,7 @@ def userkey_edit(request, pk):
...
@@ -85,7 +85,7 @@ def userkey_edit(request, pk):
url
=
request
.
GET
.
get
(
'next'
,
default_redirect
)
url
=
request
.
GET
.
get
(
'next'
,
default_redirect
)
if
not
is_safe_url
(
url
=
url
,
host
=
request
.
get_host
()):
if
not
is_safe_url
(
url
=
url
,
host
=
request
.
get_host
()):
url
=
default_redirect
url
=
default_redirect
message
=
'SSH key
<code>
%
s</code>
was saved.'
%
userkey
.
name
message
=
'SSH key
%
s
was saved.'
%
userkey
.
name
messages
.
success
(
request
,
message
,
fail_silently
=
True
)
messages
.
success
(
request
,
message
,
fail_silently
=
True
)
return
HttpResponseRedirect
(
url
)
return
HttpResponseRedirect
(
url
)
else
:
else
:
...
...
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