Skip to content

Models

hypha.apply.todo.models

Task

Bases: Model

code class-attribute instance-attribute

code = models.CharField(choices=TASKS_CODE_CHOICES, max_length=50)

user class-attribute instance-attribute

user = models.ForeignKey(User, blank=True, null=True, on_delete=models.CASCADE, related_name='task')

user_group class-attribute instance-attribute

user_group = models.ManyToManyField(Group, related_name='task', blank=True)

created_at class-attribute instance-attribute

created_at = models.DateTimeField(auto_now_add=True)

related_content_type class-attribute instance-attribute

related_content_type = models.ForeignKey(ContentType, blank=True, null=True, on_delete=models.CASCADE, related_name='task_related')

related_object_id class-attribute instance-attribute

related_object_id = models.PositiveIntegerField(blank=True, null=True)

related_object class-attribute instance-attribute

related_object = GenericForeignKey('related_content_type', 'related_object_id')

Meta

ordering class-attribute instance-attribute
ordering = ('-created_at',)
verbose_name class-attribute instance-attribute
verbose_name = _('task')
verbose_name_plural class-attribute instance-attribute
verbose_name_plural = _('tasks')

save

save(**kwargs)
Source code in hypha/apply/todo/models.py
def save(self, **kwargs):
    return super().save(**kwargs)