diff --git a/quackscape/users/views.py b/quackscape/users/views.py index 771a3d4..5c15108 100644 --- a/quackscape/users/views.py +++ b/quackscape/users/views.py @@ -89,7 +89,7 @@ class FileUploadView(GenericAPIView): instance = serializer.save() instance.category = Category.objects.get(id=kwargs["category"]) instance.save() - return Response(OriginalMediaSerializer(instance).data, status=status.HTTP_201_CREATED) + return Response(OriginalMediaSerializer(instance, context={'request': request}).data, status=status.HTTP_201_CREATED) else: return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)