예제 #1
0
파일: models.py 프로젝트: niwinz/taiga-back
def task_ref_handler(sender, instance, **kwargs):
    """
    Automatically assignes a seguent reference code to a
    user story if that is not created.
    """
    if not instance.id and instance.project:
        instance.ref = ref_uniquely(instance.project, "last_task_ref", instance.__class__)
예제 #2
0
파일: models.py 프로젝트: anler/taiga-back
def task_ref_handler(sender, instance, **kwargs):
    """
    Automatically assignes a seguent reference code to a
    user story if that is not created.
    """
    if not instance.id and instance.project:
        instance.ref = ref_uniquely(instance.project, "last_task_ref",
                                    instance.__class__)
예제 #3
0
파일: models.py 프로젝트: niwinz/taiga-back
def question_ref_handler(sender, instance, **kwargs):
    if not instance.id and instance.project:
        instance.ref = ref_uniquely(instance.project,"last_question_ref",
                                    instance.__class__)
예제 #4
0
파일: models.py 프로젝트: anler/taiga-back
def us_ref_handler(sender, instance, **kwargs):
    if not instance.id and instance.project:
        instance.ref = ref_uniquely(instance.project, "last_us_ref",
                                    instance.__class__)