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