Skip to content

Commit 92afef7

Browse files
committed
Build: bugfix to show build notifications
The context was updated in the wrong place. Closes #11146
1 parent 23bf20c commit 92afef7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/builds/views.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def get_context_data(self, **kwargs):
168168
context["project"] = self.project
169169

170170
build = self.get_object()
171+
context["notifications"] = build.notifications.all()
171172

172173
if not build.notifications.filter(
173174
message_id=BuildAppError.GENERIC_WITH_BUILD_ID
@@ -212,5 +213,5 @@ def get_context_data(self, **kwargs):
212213
issue_url = scheme.format(**scheme_dict)
213214
issue_url = urlparse(issue_url).geturl()
214215
context["issue_url"] = issue_url
215-
context["notifications"] = build.notifications.all()
216+
216217
return context

0 commit comments

Comments
 (0)