diff --git a/djangoldp/views.py b/djangoldp/views.py index 85dbdc331c400aaea51a2f2e25a646cecd537d31..47bbcf892dc4d3a982cb3131f26ca5b9c9287600 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 a815cec25123e7ab94db151a0d92ad1ed106a473..bcb4cc28ee715c7554773f4e4f0c14f0f5305678 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',