diff --git a/django_q/migrations/0002_auto_20150630_1624.py b/django_q/migrations/0002_auto_20150630_1624.py new file mode 100644 index 0000000..ea2aa80 --- /dev/null +++ b/django_q/migrations/0002_auto_20150630_1624.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('django_q', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='schedule', + name='args', + field=models.TextField(help_text="e.g. 1, 2, 'John'", blank=True, null=True), + ), + migrations.AlterField( + model_name='schedule', + name='kwargs', + field=models.TextField(help_text="e.g. x=1, y=2, name='John'", blank=True, null=True), + ), + ] diff --git a/django_q/models.py b/django_q/models.py index ebb6474..21b4d35 100644 --- a/django_q/models.py +++ b/django_q/models.py @@ -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'