Skip to content

Commit 2f337dd

Browse files
committed
Always include the project object in the context
1 parent d075d54 commit 2f337dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/builds/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ class BuildDetail(BuildBase, DetailView):
109109

110110
def get_context_data(self, **kwargs):
111111
context = super(BuildDetail, self).get_context_data(**kwargs)
112+
context['project'] = self.project
112113

113114
build = self.get_object()
114115
if build.error != BuildEnvironmentError.GENERIC_WITH_BUILD_ID.format(build_id=build.pk):
115116
# Do not suggest to open an issue if the error is not generic
116117
return context
117118

118-
context['project'] = self.project
119119
scheme = (
120120
'https://github.com/rtfd/readthedocs.org/issues/new'
121121
'?title={title}{build_id}'

0 commit comments

Comments
 (0)