remove custom get_queryset that ignored special case

This commit is contained in:
AlanCoding 2018-07-14 21:09:57 -04:00
parent 62967b2806
commit b5b2bf15df
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -1163,11 +1163,6 @@ class TeamList(ListCreateAPIView):
model = Team
serializer_class = TeamSerializer
def get_queryset(self):
qs = Team.accessible_objects(self.request.user, 'read_role').order_by()
qs = qs.select_related('admin_role', 'read_role', 'member_role', 'organization')
return qs
class TeamDetail(RetrieveUpdateDestroyAPIView):