Skip to content

Commit bd234fc

Browse files
authored
Use requested version for triggered build response (#12571)
## Summary - serialize the triggered build response using the requested version instead of the build's version ## Fixes https://read-the-docs.sentry.io/issues/6296397769/ ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_69148d12c8a08320b6a4ac8267d089b4)
1 parent 52cf3ee commit bd234fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/api/v3/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def create(self, request, **kwargs): # pylint: disable=arguments-differ
433433
data = {
434434
"build": BuildSerializer(build).data,
435435
"project": ProjectSerializer(project).data,
436-
"version": VersionSerializer(build.version).data,
436+
"version": VersionSerializer(version).data,
437437
}
438438

439439
if build:

0 commit comments

Comments
 (0)