mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
remove custom get_queryset that ignored special case
This commit is contained in:
@@ -1163,11 +1163,6 @@ class TeamList(ListCreateAPIView):
|
|||||||
model = Team
|
model = Team
|
||||||
serializer_class = TeamSerializer
|
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):
|
class TeamDetail(RetrieveUpdateDestroyAPIView):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user