diff --git a/readthedocs/api/v2/serializers.py b/readthedocs/api/v2/serializers.py index 4a26b164e62..c0f1855ed11 100644 --- a/readthedocs/api/v2/serializers.py +++ b/readthedocs/api/v2/serializers.py @@ -126,7 +126,7 @@ class VersionAdminSerializer(VersionSerializer): project = ProjectAdminSerializer() canonical_url = serializers.SerializerMethodField() - build_data = serializers.JSONField(required=False, write_only=True) + build_data = serializers.JSONField(required=False, write_only=True, allow_null=True) def get_canonical_url(self, obj): return obj.project.get_docs_url( diff --git a/readthedocs/proxito/tests/test_hosting.py b/readthedocs/proxito/tests/test_hosting.py index e6f407358af..cbfaf346da4 100644 --- a/readthedocs/proxito/tests/test_hosting.py +++ b/readthedocs/proxito/tests/test_hosting.py @@ -16,6 +16,7 @@ @override_settings( PUBLIC_DOMAIN="dev.readthedocs.io", PUBLIC_DOMAIN_USES_HTTPS=True, + GLOBAL_ANALYTICS_CODE=None, ) @pytest.mark.proxito class TestReadTheDocsConfigJson(TestCase):