Skip to content

Commit

Permalink
chore: remove latest_episode property
Browse files Browse the repository at this point in the history
  • Loading branch information
danjac committed Aug 29, 2024
1 parent b1e6c77 commit 8db9151
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions radiofeed/podcasts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import decimal
from datetime import datetime, timedelta

from radiofeed.episodes.models import Episode
from radiofeed.users.models import User


Expand Down Expand Up @@ -335,11 +334,6 @@ def has_similar(self) -> bool:
"""Returns true if any recommendations."""
return False if self.private else self.recommendations.exists()

@cached_property
def latest_episode(self) -> Episode | None:
"""Returns latest episode, if any."""
return self.episodes.order_by("-pub_date").first()


class Subscription(TimeStampedModel):
"""Subscribed podcast belonging to a user's collection."""
Expand Down

0 comments on commit 8db9151

Please sign in to comment.