From acd22b9b47d7a899e676c921abfec81f86dd8533 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 13 Oct 2020 16:30:16 +0300 Subject: [PATCH] Serializers: remove unused field. --- django_etebase/serializers.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/django_etebase/serializers.py b/django_etebase/serializers.py index 759536b..fe9ae11 100644 --- a/django_etebase/serializers.py +++ b/django_etebase/serializers.py @@ -86,14 +86,6 @@ class CollectionEncryptionKeyField(BinaryBase64Field): return None -class CollectionContentField(BinaryBase64Field): - def get_attribute(self, instance): - request = self.context.get('request', None) - if request is not None: - return instance.members.get(user=request.user).encryptionKey - return None - - class UserSlugRelatedField(serializers.SlugRelatedField): def get_queryset(self): view = self.context.get('view', None)