Skip to content

Models

hypha.apply.todo.models

Task

Bases: Model

code class-attribute instance-attribute

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

user class-attribute instance-attribute

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

user_group class-attribute instance-attribute

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

created_at class-attribute instance-attribute

created_at = DateTimeField(auto_now_add=True)

related_content_type class-attribute instance-attribute

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

related_object_id class-attribute instance-attribute

related_object_id = 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')

save

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