fixes to the my_ views, and their tests
This commit is contained in:
@@ -125,5 +125,5 @@ class CompanyViewSet(viewsets.ModelViewSet):
|
||||
@permission_classes([IsAuthenticated,])
|
||||
def my_company(request):
|
||||
qs = Company.objects.filter(creator=request.user)
|
||||
company_serializer = CompanySerializer(qs)
|
||||
company_serializer = CompanySerializer(qs, many=True)
|
||||
return Response(data=company_serializer.data)
|
||||
|
||||
Reference in New Issue
Block a user