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

Show all ous sponsor can access in register form

parent d041670d
No related branches found
No related tags found
1 merge request!214Show all ous sponsor can access in register form
Pipeline #104871 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