Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
e27659e9
Commit
e27659e9
authored
Dec 06, 2016
by
Zosman
Browse files
Changing toUNblock -> toUnBlock
parent
717de6f2
Pipeline
#595
passed with stage
in 2 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/views.py
View file @
e27659e9
...
...
@@ -390,9 +390,9 @@ def useradmin(request):
# If we're un-blocking users
elif
'_unblock'
in
request
.
POST
:
for
name
in
userlist
:
toU
N
block
=
RegisteredUser
.
objects
.
get
(
user__username__exact
=
name
)
toU
n
block
=
RegisteredUser
.
objects
.
get
(
user__username__exact
=
name
)
if
settings
.
EMAIL_HOST
and
settings
.
EMAIL_PORT
:
user_mail
=
toU
N
block
.
user
.
username
+
settings
.
EMAIL_DOMAIN
user_mail
=
toU
n
block
.
user
.
username
+
settings
.
EMAIL_DOMAIN
send_mail
(
'Your Account has been Un-Blocked!'
,
######################
...
...
@@ -402,14 +402,14 @@ def useradmin(request):
'If you wish to continue Go use please register again.
\n\n
'
'Congratulations! '
'- Go Admins'
%
(
str
(
toU
N
block
.
full_name
)),
%
(
str
(
toU
n
block
.
full_name
)),
######################
settings
.
EMAIL_FROM
,
[
user_mail
]
)
# toUNblock.user.delete()
toU
N
block
.
blocked
=
False
toU
N
block
.
save
()
toU
n
block
.
blocked
=
False
toU
n
block
.
save
()
return
HttpResponseRedirect
(
'useradmin'
)
# If we're removing existing users
...
...
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