Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
a2ebbcaa
Commit
a2ebbcaa
authored
Jan 14, 2021
by
Glaucia S. Santos
Browse files
Filter active users
parent
9a72fc55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
courses/reports/views.py
courses/reports/views.py
+1
-1
No files found.
courses/reports/views.py
View file @
a2ebbcaa
...
...
@@ -339,7 +339,7 @@ class UserStatsViewSet(viewsets.ReadOnlyModelViewSet):
queryset
=
super
().
get_queryset
()
group_id
=
self
.
request
.
query_params
.
get
(
'group'
)
queryset
=
queryset
.
filter
(
groups__id
=
group_id
)
queryset
=
queryset
.
filter
(
groups__id
=
group_id
,
is_active
=
True
)
return
queryset
...
...
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