Skip to content
Snippets Groups Projects
Commit 65d94e65 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Merge branch 'bugfix/show-ous' into 'master'

Show all ous sponsor can access in register form

See merge request !214
parents 7bf75e76 e177e1e3
No related branches found
No related tags found
1 merge request!214Show all ous sponsor can access in register form
Pipeline #104914 passed
......@@ -17,4 +17,4 @@ class OusViewSet(mixins.ListModelMixin, GenericViewSet):
def get_queryset(self):
sponsor = GregUserProfile.objects.get(user=self.request.user).sponsor
return sponsor.units.all()
return sponsor.get_allowed_units()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment