Skip to content

Commit 4d57b4b

Browse files
committed
Fix lint
1 parent cff750a commit 4d57b4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/builds/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ def get_absolute_url(self):
277277
# TODO: We can integrate them into the resolver
278278
# but this is much simpler to handle since we only link them a couple places for now
279279
if self.type == EXTERNAL:
280-
url = f"{settings.EXTERNAL_VERSION_URL}/html/{self.project.slug}/{self.slug}/"
280+
url = f'{settings.EXTERNAL_VERSION_URL}/html/' \
281+
f'{self.project.slug}/{self.slug}/'
282+
# Django's static file serving doesn't automatically append index.html
281283
if settings.DEBUG:
282284
url += 'index.html'
283285
return url

0 commit comments

Comments
 (0)