Skip to content

Commit 9746cb8

Browse files
committed
chore: remove unused code
1 parent a25ff25 commit 9746cb8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

downloads/views.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from datetime import datetime
44

5-
from django.core.handlers.wsgi import WSGIRequest
65
from django.db.models import Prefetch
76
from django.urls import reverse
87
from django.utils import timezone
@@ -174,11 +173,6 @@ def link() -> str:
174173
"""Return the URL to the main downloads page."""
175174
return reverse("downloads:download")
176175

177-
def get_feed(self, obj: Any, request: WSGIRequest) -> Feed:
178-
"""Store the request object for later use."""
179-
self.request = request
180-
return super().get_feed(obj, request)
181-
182176
def items(self) -> list[dict[str, Any]]:
183177
"""Return the latest Python releases."""
184178
return Release.objects.filter(is_published=True).order_by("-release_date")[:10]

0 commit comments

Comments
 (0)