Schedule args and kwargs fields are now unlimited text fields.

This commit is contained in:
Ilan Steemers
2015-06-30 18:34:14 +02:00
parent 4ce44fe576
commit 8188893ff4
2 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -89,8 +89,8 @@ class Failure(Task):
class Schedule(models.Model):
func = models.CharField(max_length=256, help_text='e.g. module.tasks.function')
hook = models.CharField(max_length=256, null=True, blank=True, help_text='e.g. module.tasks.result_function')
args = models.CharField(max_length=256, null=True, blank=True, help_text=_("e.g. 1, 2, 'John'"))
kwargs = models.CharField(max_length=256, null=True, blank=True, help_text=_("e.g. x=1, y=2, name='John'"))
args = models.TextField(null=True, blank=True, help_text=_("e.g. 1, 2, 'John'"))
kwargs = models.TextField(null=True, blank=True, help_text=_("e.g. x=1, y=2, name='John'"))
ONCE = 'O'
HOURLY = 'H'
DAILY = 'D'