mirror of
https://github.com/etesync/server
synced 2024-12-27 09:48:24 +00:00
Serializers: remove unused field.
This commit is contained in:
parent
741b6d7c52
commit
acd22b9b47
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user