Reminders hypha.apply.funds.models.reminders ¶ Reminder ¶ Bases: Model REVIEW class-attribute instance-attribute ¶ REVIEW = 'reviewers_review' ACTIONS class-attribute instance-attribute ¶ ACTIONS = {REVIEW: 'Remind reviewers to Review'} EMAIL class-attribute instance-attribute ¶ EMAIL = 'email' MEDIUM class-attribute instance-attribute ¶ MEDIUM = {REVIEW: EMAIL} ACTION_MESSAGE class-attribute instance-attribute ¶ ACTION_MESSAGE = {f'{REVIEW}-{EMAIL}': REVIEW_REMINDER} submission class-attribute instance-attribute ¶ submission = ForeignKey('funds.ApplicationSubmission', on_delete=CASCADE, related_name='reminders') user class-attribute instance-attribute ¶ user = ForeignKey(AUTH_USER_MODEL, on_delete=PROTECT) time class-attribute instance-attribute ¶ time = DateTimeField() action class-attribute instance-attribute ¶ action = CharField(choices=items(), default=REVIEW, max_length=50) sent class-attribute instance-attribute ¶ sent = BooleanField(default=False) title class-attribute instance-attribute ¶ title = CharField(max_length=60, blank=False, default='') description class-attribute instance-attribute ¶ description = TextField(blank=True) is_expired property ¶ is_expired action_message property ¶ action_message action_type property ¶ action_type medium property ¶ medium Meta ¶ ordering class-attribute instance-attribute ¶ ordering = ['-time'] clean ¶ clean() Source code in hypha/apply/funds/models/reminders.py 46 47 48def clean(self): if self.title == "": raise ValidationError("Title is Empty")