1
0
mirror of https://github.com/etesync/server synced 2024-12-26 17:28:08 +00:00

Serializers: remove unused field.

This commit is contained in:
Tom Hacohen 2020-10-13 16:30:16 +03:00
parent 741b6d7c52
commit acd22b9b47

View File

@ -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)