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
eace7ee7
authored
Jul 02, 2014
by
Scott Duckworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make messages more consistent with email messages
parent
057e685c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
django_sshkey/views.py
+3
-3
No files found.
django_sshkey/views.py
View file @
eace7ee7
...
...
@@ -85,7 +85,7 @@ def userkey_add(request):
url
=
request
.
GET
.
get
(
'next'
,
default_redirect
)
if
not
is_safe_url
(
url
=
url
,
host
=
request
.
get_host
()):
url
=
default_redirect
message
=
'SSH
key
%
s was sav
ed.'
%
userkey
.
name
message
=
'SSH
public key
%
s was add
ed.'
%
userkey
.
name
messages
.
success
(
request
,
message
,
fail_silently
=
True
)
return
HttpResponseRedirect
(
url
)
else
:
...
...
@@ -112,7 +112,7 @@ def userkey_edit(request, pk):
url
=
request
.
GET
.
get
(
'next'
,
default_redirect
)
if
not
is_safe_url
(
url
=
url
,
host
=
request
.
get_host
()):
url
=
default_redirect
message
=
'SSH key
%
s was saved.'
%
userkey
.
name
message
=
'SSH
public
key
%
s was saved.'
%
userkey
.
name
messages
.
success
(
request
,
message
,
fail_silently
=
True
)
return
HttpResponseRedirect
(
url
)
else
:
...
...
@@ -130,6 +130,6 @@ def userkey_delete(request, pk):
if
userkey
.
user
!=
request
.
user
:
raise
PermissionDenied
userkey
.
delete
()
message
=
'SSH key
%
s was deleted.'
%
userkey
.
name
message
=
'SSH
public
key
%
s was deleted.'
%
userkey
.
name
messages
.
success
(
request
,
message
,
fail_silently
=
True
)
return
HttpResponseRedirect
(
reverse
(
'django_sshkey.views.userkey_list'
))
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