def serialize(self, context=None):
     if context is None:
         context = {}
     context['request'] = self.request
     serializer = ActivityLogSerializer(context=context)
     return serializer.to_representation(self.entry)
 def serialize(self, id_):
     serializer = ActivityLogSerializer(context={'request': self.request})
     return serializer.to_representation(id_)
 def serialize(self, context=None):
     if context is None:
         context = {}
     context['request'] = self.request
     serializer = ActivityLogSerializer(context=context)
     return serializer.to_representation(self.entry)
Пример #4
0
 def serialize(self, id_):
     serializer = ActivityLogSerializer(context={'request': self.request})
     return serializer.to_representation(id_)