conditional to test dict-ness
import logging
+from django.http import QueryDict
+
from rest_framework.response import Response
from rest_framework.exceptions import ValidationError
from rest_framework import status
@@ -193,7 +195,7 @@ class MetadataElementsRetrieveUpdate(generics.RetrieveUpdateDestroyAPIView):
put_data = request.data.copy()
# convert the QueryDict to dict
-
+ if isinstance(put_data, QueryDict):
put_data = put_data.dict()
try:
