text: from account.models import Contact
  
  from account.api.serializers import ContactSerializer
  
  from rest_framework import generics
  
  
  class ContactsView(generics.ListCreateAPIView):
      queryset = Contact.objects.all()
      serializer_class = ContactSerializer
  
      def get_queryset(self):
          user = self.request.user
          return super().get_queryset().filter(email=user.email)
  
  
  class ContactView(generics.RetrieveUpdateAPIView):
      queryset = Contact.objects.all()
      serializer_class = ContactSerializer
  