From 1dfffc8a3b5638dd4f639c688ac00649ce855268 Mon Sep 17 00:00:00 2001
From: Sylvain Le Bon <sylvain@happy-dev.fr>
Date: Mon, 18 Feb 2019 10:03:44 +0100
Subject: [PATCH] update: add type of container

---
 djangoldp/serializers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/djangoldp/serializers.py b/djangoldp/serializers.py
index 80510749..176f56bf 100644
--- a/djangoldp/serializers.py
+++ b/djangoldp/serializers.py
@@ -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]
-- 
GitLab