Skip to content

Commit

Permalink
Update events/models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee authored Sep 12, 2024
1 parent 9a979bf commit 75d889b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,8 @@ class RecurringRule(RuleMixin, models.Model):
all_day = models.BooleanField(default=False)

def __str__(self):
return (
f'{self.event.title} every '
f'{timedelta_nice_repr(self.freq_interval_as_timedelta)} since '
f'{date(self.dt_start, settings.SHORT_DATETIME_FORMAT)}'
)
return (f'{self.event.title} every {timedelta_nice_repr(self.freq_interval_as_timedelta)} since '
f'{date(self.dt_start, settings.SHORT_DATETIME_FORMAT)}')

def to_rrule(self):
return rrule(
Expand Down

0 comments on commit 75d889b

Please sign in to comment.