Example #1
0
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__)
Example #2
0
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__)
Example #3
0
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__)
Example #4
0
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__)