File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,10 @@ class OccurringRule(RuleMixin, models.Model):
237
237
238
238
def __str__ (self ):
239
239
strftime = settings .SHORT_DATETIME_FORMAT
240
- return f'{ self .event .title } { date (self .dt_start .strftime , strftime )} - { date (self .dt_end .strftime , strftime )} '
240
+ return (
241
+ f'{ self .event .title } { date (self .dt_start , strftime )} - '
242
+ f'{ date (self .dt_end , strftime )} '
243
+ )
241
244
242
245
@property
243
246
def begin (self ):
@@ -283,8 +286,11 @@ class RecurringRule(RuleMixin, models.Model):
283
286
all_day = models .BooleanField (default = False )
284
287
285
288
def __str__ (self ):
286
- strftime = settings .SHORT_DATETIME_FORMAT
287
- return f'{ self .event .title } every { timedelta_nice_repr (self .interval )} since { date (self .dt_start .strftime , strftime )} '
289
+ return (
290
+ f'{ self .event .title } every '
291
+ f'{ timedelta_nice_repr (self .freq_interval_as_timedelta )} since '
292
+ f'{ date (self .dt_start , settings .SHORT_DATETIME_FORMAT )} '
293
+ )
288
294
289
295
def to_rrule (self ):
290
296
return rrule (
You can’t perform that action at this time.
0 commit comments