Skip to content

Commit

Permalink
use same order in the admin as in the cron schedule expression
Browse files Browse the repository at this point in the history
  • Loading branch information
kviktor authored and auvipy committed Jan 19, 2024
1 parent 00f0a5c commit 0f71e09
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions django_celery_beat/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,6 @@ class CrontabSchedule(models.Model):
'Cron Hours to Run. Use "*" for "all". (Example: "8,20")'),
validators=[validators.hour_validator],
)
day_of_week = models.CharField(
max_length=64, default='*',
verbose_name=_('Day(s) Of The Week'),
help_text=_(
'Cron Days Of The Week to Run. Use "*" for "all", Sunday '
'is 0 or 7, Monday is 1. (Example: "0,5")'),
validators=[validators.day_of_week_validator],
)
day_of_month = models.CharField(
max_length=31 * 4, default='*',
verbose_name=_('Day(s) Of The Month'),
Expand All @@ -298,6 +290,14 @@ class CrontabSchedule(models.Model):
'(Example: "1,12")'),
validators=[validators.month_of_year_validator],
)
day_of_week = models.CharField(
max_length=64, default='*',
verbose_name=_('Day(s) Of The Week'),
help_text=_(
'Cron Days Of The Week to Run. Use "*" for "all", Sunday '
'is 0 or 7, Monday is 1. (Example: "0,5")'),
validators=[validators.day_of_week_validator],
)

timezone = timezone_field.TimeZoneField(
default=crontab_schedule_celery_timezone,
Expand Down

0 comments on commit 0f71e09

Please sign in to comment.