Skip to content

Commit 08a4349

Browse files
humitosagjohnson
authored andcommitted
Use id attribute instead of pk for build (#3325)
`pk` exists only for Builds that are retrieved from the database, but when it's retrieved using the API, the `id` must be used. Using the `id` is compatible with both instances. Related to #2963
1 parent 10b3191 commit 08a4349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/doc_builder/environments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def update_build(self, state=None):
426426
self.build['error'] = ugettext_noop(
427427
"There was a problem with Read the Docs while building your documentation. "
428428
"Please report this to us with your build id ({build_id}).".format(
429-
build_id=self.build['pk']
429+
build_id=self.build['id']
430430
)
431431
)
432432
log.error(

0 commit comments

Comments
 (0)