From 853816c46e930fb15b639c01672d4ef3f1841f7b Mon Sep 17 00:00:00 2001 From: Sylvain Le Bon <sylvain@happy-dev.fr> Date: Thu, 7 Jun 2018 16:51:42 +0200 Subject: [PATCH] update: set depth to 0 --- djangoldp/views.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/djangoldp/views.py b/djangoldp/views.py index 85dbdc33..47bbcf89 100644 --- a/djangoldp/views.py +++ b/djangoldp/views.py @@ -88,7 +88,7 @@ class LDPViewSet(LDPViewSetGenerator): def build_serializer(self): model_name = self.model._meta.object_name.lower() lookup_field = get_resolver().reverse_dict[model_name+'-detail'][0][0][1][0] - meta_args = {'model': self.model, 'extra_kwargs': {'@id': {'lookup_field': lookup_field}}, 'depth': 1, 'extra_fields': self.nested_fields} + meta_args = {'model': self.model, 'extra_kwargs': {'@id': {'lookup_field': lookup_field}}, 'depth': 0, 'extra_fields': self.nested_fields} if self.fields: meta_args['fields'] = self.fields else: diff --git a/setup.py b/setup.py index a815cec2..bcb4cc28 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='djangoldp', - version='0.4a2', + version='0.4a3', url='https://git.happy-dev.fr/happy-dev/djangoldp/', author="Startin'blox", author_email='sylvain@happy-dev.fr', -- GitLab