text: from django.shortcuts import render
  from swpp.models import Profile
  from swpp.serializers import ProfileSerializer
  from rest_framework import generics, mixins, permissions
  from swpp.permissions import IsOwnerOrReadOnly
  
  class ProfileList(generics.ListAPIView):
      queryset = Profile.objects.all()
      serializer_class = ProfileSerializer
  
  class ProfileDetails(generics.RetrieveUpdateAPIView):
      queryset = Profile.objects.all()
      serializer_class = ProfileSerializer
      permission_classes = (IsOwnerOrReadOnly, )
  
      def put(self, request, *args, **kwargs):
          return self.partial_update(request, *args, **kwargs)
  