def get_serializer_context(self): # Serializer needs the request in order to make an update to privacy context = JSONAPIBaseView.get_serializer_context(self) context['request'] = self.request return context
def get_serializer_context(self): context = JSONAPIBaseView.get_serializer_context(self) context['file'] = self.file return context
def get_serializer_context(self): context = JSONAPIBaseView.get_serializer_context(self) context['resource'] = self.get_preprint() context['default_email'] = 'preprint' return context