Allows for blank Schedule names in the admin

This commit is contained in:
Ilan Steemers
2016-02-24 11:27:16 +01:00
parent 763fff34c0
commit 8f270a5b97
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -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'"))