Commit f4ffe100 authored by zhengjinlei's avatar zhengjinlei

删除客户画像标签

parent 204f82d3
......@@ -201,6 +201,9 @@ def delete_stat_by_task(task):
RulesStat.objects.filter(taskId=task.id).delete()
SeatStat.objects.filter(taskId=task.id).delete()
ScoreStat.objects.filter(taskId=task.id).delete()
profile_list = CustomLabel.objects.filter(task_id=task.id).values_list('profile_id', flat=True)
CustomProfile.objects.filter(pk__in=profile_list).delete()
CustomLabel.objects.filter(task_id=task.id).delete()
def save_custom_profile(task, check, name, profile_count):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment