def put(self, request, pk, format=None):
     standard_property = self.get_object(pk)
     serializer = QStandardPropertySerializer(standard_property, data=request.data, context={"request": request})
     if serializer.is_valid():
         serializer.save()
         return Response(serializer.data)
     return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
 def post(self, request, format=None):
     standard_property = QStandardPropertySerializer(data=request.data, context={"request": request})
     if standard_property.is_valid():
         standard_property.save()
         return Response(standard_property.data, status=status.HTTP_201_CREATED)
     else:
         return Response(standard_property.errors, status=status.HTTP_400_BAD_REQUEST)