Change Costum to Custom
This commit is contained in:
MohamadReza Taalebi 2020-01-27 15:40:25 +03:30 committed by GitHub
parent fa78886581
commit 4602333f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ class GenericAPIView(views.APIView):
"""
serializer_class = self.get_serializer_class()
# Include view's costum context
# Include view's custom context
default_context = self.get_serializer_context()
if 'context' in kwargs:
kwargs['context'].update(default_context)