diff --git a/django_q/migrations/0008_auto_20160224_1026.py b/django_q/migrations/0008_auto_20160224_1026.py new file mode 100644 index 0000000..c9aeef1 --- /dev/null +++ b/django_q/migrations/0008_auto_20160224_1026.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('django_q', '0007_ormq'), + ] + + operations = [ + migrations.AlterField( + model_name='schedule', + name='name', + field=models.CharField(blank=True, max_length=100, null=True), + ), + ] diff --git a/django_q/models.py b/django_q/models.py index ceba5ad..a4b0223 100644 --- a/django_q/models.py +++ b/django_q/models.py @@ -121,7 +121,7 @@ class Failure(Task): class Schedule(models.Model): - name = models.CharField(max_length=100, null=True) + name = models.CharField(max_length=100, null=True, blank=True) 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.TextField(null=True, blank=True, help_text=_("e.g. 1, 2, 'John'"))