Skip to content

Commit 493a1f2

Browse files
philipp-zettlauvipy
authored andcommitted
fix string representation, addresses #73
1 parent 212aef2 commit 493a1f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

django_celery_beat/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ class Meta:
292292
'day_of_week', 'hour', 'minute', 'timezone']
293293

294294
def __str__(self):
295-
return '{0} {1} {2} {3} {4} (m/h/d/dM/MY) {5}'.format(
295+
return '{0} {1} {2} {3} {4} (m/h/dM/MY/d) {5}'.format(
296296
cronexp(self.minute), cronexp(self.hour),
297-
cronexp(self.day_of_week), cronexp(self.day_of_month),
298-
cronexp(self.month_of_year), str(self.timezone)
297+
cronexp(self.day_of_month), cronexp(self.month_of_year),
298+
cronexp(self.day_of_week), str(self.timezone)
299299
)
300300

301301
@property

0 commit comments

Comments
 (0)