@@ -93,8 +93,7 @@ class TimeUnits(models.TextChoices):
9393 )
9494 queue = models .CharField (_ ("queue" ), max_length = 255 , choices = get_queue_choices , help_text = _ ("Queue name" ))
9595 job_id = models .CharField (
96- _ ("job id" ), max_length = 128 , editable = False , blank = True , null = True ,
97- help_text = _ ("Current job_id on queue" )
96+ _ ("job id" ), max_length = 128 , editable = False , blank = True , null = True , help_text = _ ("Current job_id on queue" )
9897 )
9998 at_front = models .BooleanField (
10099 _ ("At front" ),
@@ -147,10 +146,18 @@ class TimeUnits(models.TextChoices):
147146 help_text = _ ("Last time the task has failed" ),
148147 )
149148 interval = models .PositiveIntegerField (
150- _ ("interval" ), blank = True , null = True ,
151- help_text = _ ("Interval for repeatable task" ), )
149+ _ ("interval" ),
150+ blank = True ,
151+ null = True ,
152+ help_text = _ ("Interval for repeatable task" ),
153+ )
152154 interval_unit = models .CharField (
153- _ ("interval unit" ), max_length = 12 , choices = TimeUnits .choices , default = TimeUnits .HOURS , blank = True , null = True ,
155+ _ ("interval unit" ),
156+ max_length = 12 ,
157+ choices = TimeUnits .choices ,
158+ default = TimeUnits .HOURS ,
159+ blank = True ,
160+ null = True ,
154161 )
155162 repeat = models .PositiveIntegerField (
156163 _ ("repeat" ),
@@ -161,7 +168,9 @@ class TimeUnits(models.TextChoices):
161168 scheduled_time = models .DateTimeField (_ ("scheduled time" ))
162169 cron_string = models .CharField (
163170 _ ("cron string" ),
164- max_length = 64 , blank = True , null = True ,
171+ max_length = 64 ,
172+ blank = True ,
173+ null = True ,
165174 help_text = mark_safe (
166175 """Define the schedule in a crontab like syntax.
167176 Times are in UTC. Use <a href="https://crontab.guru/">crontab.guru</a> to create a cron string."""
0 commit comments