Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Periodic Tasks with a start date and one-off tasks (#78)
* support periodic tasks with a start date and also one-off tasks. Change the list display in PeriodicTaskAdmin to show interval, start_date, one_off additionally - easier/quicker identifcation of task properties in admin list * add migration * rename start_date to start_time and add tests * fix unit test * update migrations and fix tests
- Loading branch information
Showing
5 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.7 on 2018-05-21 08:26 | ||
from __future__ import absolute_import, unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('django_celery_beat', '0006_auto_20180322_0932'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='periodictask', | ||
name='one_off', | ||
field=models.BooleanField(default=False, | ||
verbose_name='one-off task'), | ||
), | ||
migrations.AddField( | ||
model_name='periodictask', | ||
name='start_time', | ||
field=models.DateTimeField(blank=True, | ||
null=True, | ||
verbose_name='start_time'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters