Skip to content

Commit 1aff35b

Browse files
author
Omer Katz
authored
Merge pull request #171 from celery/revert-167-master
Revert "Fix interval & solar validation"
2 parents 8d8bc8b + 279c750 commit 1aff35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_celery_beat/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def validate_unique(self, *args, **kwargs):
325325
raise ValidationError({
326326
'crontab': [err_msg]
327327
})
328-
if self.interval and self.solar:
328+
if self.interval or self.solar:
329329
raise ValidationError({
330330
'solar': [err_msg]
331331
})

0 commit comments

Comments
 (0)