Skip to content
Snippets Groups Projects
Commit 1dfffc8a authored by Sylvain Le Bon's avatar Sylvain Le Bon
Browse files

update: add type of container

parent 48ceba27
No related branches found
No related tags found
No related merge requests found
Pipeline #709 passed
......@@ -29,7 +29,7 @@ class LDListMixin:
return [self.child.to_internal_value(item) for item in data]
def to_representation(self, value):
return {'@id': self.id, 'ldp:contains': super().to_representation(value)}
return {'@id': self.id, '@type': 'ldp:Container', 'ldp:contains': super().to_representation(value)}
def get_attribute(self, instance):
parent_id_field = self.parent.fields[self.parent.url_field_name]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment