File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -168,11 +168,6 @@ class ReleaseFeed(Feed):
168
168
title = "Python Releases"
169
169
description = "Latest Python releases from Python.org"
170
170
171
- @staticmethod
172
- def link () -> str :
173
- """Return the URL to the main downloads page."""
174
- return reverse ("downloads:download" )
175
-
176
171
def items (self ) -> list [dict [str , Any ]]:
177
172
"""Return the latest Python releases."""
178
173
return Release .objects .filter (is_published = True ).order_by ("-release_date" )[:10 ]
@@ -185,10 +180,6 @@ def item_description(self, item: Release) -> str:
185
180
"""Return the release version and release date as the item description."""
186
181
return f"Version: { item .version } , Release Date: { item .release_date } "
187
182
188
- def item_link (self , item : Release ) -> str :
189
- """Return the URL to the release page on python.org."""
190
- return reverse ("downloads:download_release_detail" , args = [item .slug ])
191
-
192
183
def item_pubdate (self , item : Release ) -> datetime | None :
193
184
"""Return the release date as the item publication date."""
194
185
if item .release_date :
You can’t perform that action at this time.
0 commit comments