Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
d7ca6e55
Verified
Commit
d7ca6e55
authored
Jan 19, 2019
by
Sébastiaan Versteeg
Browse files
Exclude non-active groups from NC api
parent
6654a6f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/api/views.py
View file @
d7ca6e55
...
...
@@ -37,8 +37,10 @@ class NextCloudUsersView(ListAPIView):
class
NextCloudGroupsView
(
ListAPIView
):
permission_classes
=
[
NextCloudPermission
]
queryset
=
MemberGroup
.
objects
.
exclude
(
name_en
=
'admin'
,
name_nl
=
'admin'
).
all
()
queryset
=
(
MemberGroup
.
objects
.
exclude
(
name_en
=
'admin'
)
.
exclude
(
active
=
False
)
.
all
())
serializer_class
=
NextCloudGroupSerializer
def
list
(
self
,
request
,
*
args
,
**
kwargs
):
...
...
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