Removed redundant get_serializer_context.
This is already provided by default in drf.
This commit is contained in:
parent
9f2140ffac
commit
89b47c67b7
@ -473,11 +473,6 @@ class InvitationOutgoingViewSet(BaseViewSet):
|
|||||||
lookup_field = 'uid'
|
lookup_field = 'uid'
|
||||||
lookup_url_kwarg = 'invitation_uid'
|
lookup_url_kwarg = 'invitation_uid'
|
||||||
|
|
||||||
def get_serializer_context(self):
|
|
||||||
context = super().get_serializer_context()
|
|
||||||
context.update({'request': self.request})
|
|
||||||
return context
|
|
||||||
|
|
||||||
def get_queryset(self, queryset=None):
|
def get_queryset(self, queryset=None):
|
||||||
if queryset is None:
|
if queryset is None:
|
||||||
queryset = type(self).queryset
|
queryset = type(self).queryset
|
||||||
|
Loading…
Reference in New Issue
Block a user