perf: 重构工单处理流程 (#5408)

* perf: 重构工单处理流程

* perf: 重构工单处理流程 (1)

* perf: 重构工单处理流程 (2)

* perf: 重构工单处理流程 (3)

* perf: 重构工单处理流程 (4)

* perf: 重构工单处理流程 (5)

* perf: 重构工单处理流程 (6)

Co-authored-by: Bai <bugatti_it@163.com>
This commit is contained in:
fit2bot
2021-01-13 17:49:03 +08:00
committed by GitHub
parent 528e251f31
commit a7468a243d
28 changed files with 411 additions and 619 deletions

View File

@@ -0,0 +1,9 @@
from django.db.models.signals import pre_save
from django.dispatch import receiver
from ..models import Comment
@receiver(pre_save, sender=Comment)
def on_comment_pre_save(sender, instance, **kwargs):
instance.set_display_fields()