def clean(self, *args, **kwargs):
if self.is_scheduled is <NUM_LIT:1> and (self.scheduled_date == '<STR_LIT>' or self.scheduled_date is None<EOL>or self.scheduled_time == '<STR_LIT>' or self.scheduled_time is None):<EOL><INDENT>raise ValidationError(_('<STR_LIT>'))<EOL><DEDENT>if self.is_scheduled is <NUM_LIT:1> and self.scheduled_date < now().date():<EOL><INDENT>raise ValidationError(_('<STR_LIT>'))<EOL><DEDENT>if self.is_filtered is <NUM_LIT:1> and (len(self.filters) < <NUM_LIT:1> or self.filters == ['<STR_LIT>'] or<EOL>self.filters == [u'<STR_LIT>'] or self.filters == '<STR_LIT>' or self.filters is None):<EOL><INDENT>raise ValidationError(_('<STR_LIT>'))<EOL><DEDENT>if self.is_filtered is <NUM_LIT:1> and FILTERS.get('<STR_LIT>') in self.filters and(len(self.groups) < <NUM_LIT:1> or self.groups == ['<STR_LIT>'] or self.groups == [u'<STR_LIT>'] or self.groups == '<STR_LIT>' or self.groups is None):<EOL><INDENT>raise ValidationError(_('<STR_LIT>'))<EOL><DEDENT>
Custom validation