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
569f722c
Commit
569f722c
authored
Dec 23, 2016
by
Zosman
Browse files
added some comments
parent
80794b1c
Pipeline
#695
passed with stage
in 1 minute and 24 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
go/go/views.py
View file @
569f722c
...
...
@@ -436,7 +436,9 @@ def useradmin(request):
# Get a list of all RegisteredUsers that need to be approved
need_approval
=
RegisteredUser
.
objects
.
filter
(
registered
=
True
).
filter
(
approved
=
False
).
filter
(
blocked
=
False
)
# Get a list of all RegisteredUsers that are currently users
current_users
=
RegisteredUser
.
objects
.
filter
(
approved
=
True
).
filter
(
registered
=
True
).
filter
(
blocked
=
False
)
# Get a list of all RegisteredUsers that are blocked
blocked_users
=
RegisteredUser
.
objects
.
filter
(
blocked
=
True
)
# Pass that list to the template
...
...
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