Skip to content

Commit 6999d2b

Browse files
committed
revert: put the code back, john
1 parent b70a8c7 commit 6999d2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

downloads/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ class ReleaseFeed(Feed):
168168
title = "Python Releases"
169169
description = "Latest Python releases from Python.org"
170170

171+
@staticmethod
172+
def link() -> str:
173+
"""Return the URL to the main downloads page."""
174+
return reverse("downloads:download")
175+
171176
def items(self) -> list[dict[str, Any]]:
172177
"""Return the latest Python releases."""
173178
return Release.objects.filter(is_published=True).order_by("-release_date")[:10]

0 commit comments

Comments
 (0)