Add serializer context to CategoryDetail (#6910)
This commit is contained in:
parent
2570aff123
commit
b93d0c587e
|
|
@ -267,6 +267,8 @@ class CategoryDetail(CategoryMixin, CustomRetrieveUpdateDestroyAPI):
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
kwargs.setdefault('context', self.get_serializer_context())
|
||||
|
||||
return self.serializer_class(*args, **kwargs)
|
||||
|
||||
def update(self, request, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Reference in New Issue