We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d46679 commit db73802Copy full SHA for db73802
readthedocs/projects/tasks.py
@@ -663,9 +663,7 @@ def get_env_vars(self):
663
})
664
665
# Update environment from Project's specific environment variables
666
- env.update(
667
- api_v2.project(self.project.pk).environment_variables().get(),
668
- )
+ env.update(self.project.environment_variables)
669
670
return env
671
readthedocs/restapi/serializers.py
@@ -43,6 +43,12 @@ class ProjectAdminSerializer(ProjectSerializer):
43
slug_field='feature_id',
44
)
45
46
+ def get_environment_variables(self, obj):
47
+ return {
48
+ variable.name: variable.value
49
+ for variable in obj.environmentvariable_set.all()
50
+ }
51
+
52
class Meta(ProjectSerializer.Meta):
53
fields = ProjectSerializer.Meta.fields + (
54
'enable_epub_build',
0 commit comments