예제 #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
예제 #2
0
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['file'] = self.file
     return context
예제 #3
0
파일: views.py 프로젝트: adlius/osf.io
 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
예제 #4
0
파일: views.py 프로젝트: icereval/osf.io
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['file'] = self.file
     return context
예제 #5
0
파일: views.py 프로젝트: fugokidi/osf.io
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['resource'] = self.get_preprint()
     context['default_email'] = 'preprint'
     return context
예제 #6
0
 def get_serializer_context(self):
     context = JSONAPIBaseView.get_serializer_context(self)
     context['resource'] = self.get_preprint()
     context['default_email'] = 'preprint'
     return context