Example #1
0
 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
Example #2
0
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['file'] = self.file
     return context
Example #3
0
 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
Example #4
0
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['file'] = self.file
     return context
Example #5
0
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['resource'] = self.get_preprint()
     context['default_email'] = 'preprint'
     return context
Example #6
0
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['resource'] = self.get_preprint()
     context['default_email'] = 'preprint'
     return context