From 6999d2b39a79091c77f0e34390875fa5d5ccaa74 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Tue, 17 Sep 2024 15:53:05 -0500 Subject: [PATCH] revert: put the code back, john --- downloads/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/downloads/views.py b/downloads/views.py index 42cdf3234..92e851545 100644 --- a/downloads/views.py +++ b/downloads/views.py @@ -168,6 +168,11 @@ class ReleaseFeed(Feed): title = "Python Releases" description = "Latest Python releases from Python.org" + @staticmethod + def link() -> str: + """Return the URL to the main downloads page.""" + return reverse("downloads:download") + def items(self) -> list[dict[str, Any]]: """Return the latest Python releases.""" return Release.objects.filter(is_published=True).order_by("-release_date")[:10]