Commit f1b10be1 authored by Jean-Baptiste's avatar Jean-Baptiste

update: fix response depth on PUT

parent 8abc318f
Pipeline #4938 passed with stage
in 1 minute and 21 seconds
import sys
from importlib import reload
from django.apps import apps
from django.conf import settings
from django.conf.urls import url, include
from django.contrib.auth import get_user_model
from django.core.exceptions import FieldDoesNotExist
from django.core.urlresolvers import get_resolver
from django.db.models.signals import post_save, post_delete
from django.db.utils import OperationalError, ProgrammingError
from django.dispatch import receiver
from django.shortcuts import get_object_or_404
from django.urls import clear_url_caches
from django.utils.decorators import classonlymethod
from pyld import jsonld
from rest_framework import status
......@@ -161,7 +154,10 @@ class LDPViewSet(LDPViewSetGenerator):
# forcibly invalidate the prefetch cache on the instance.
instance._prefetched_objects_cache = {}
return Response(
response_serializer = self.get_serializer()
data = response_serializer.to_representation(serializer.instance)
return Response(data)
def get_write_serializer(self, *args, **kwargs):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment