Skip to content

Commit

Permalink
revert: put the code back, john
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 17, 2024
1 parent b70a8c7 commit 6999d2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions downloads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6999d2b

Please sign in to comment.