From 89b47c67b7d98f2fd9ead10d308d0d46018b4b0f Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 27 May 2020 17:06:22 +0300 Subject: [PATCH] Removed redundant get_serializer_context. This is already provided by default in drf. --- django_etesync/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/django_etesync/views.py b/django_etesync/views.py index 31f0550..dfc0274 100644 --- a/django_etesync/views.py +++ b/django_etesync/views.py @@ -473,11 +473,6 @@ class InvitationOutgoingViewSet(BaseViewSet): lookup_field = '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): if queryset is None: queryset = type(self).queryset