fix: 年度基础目标使用物理删除

This commit is contained in:
caoqianming 2023-05-29 17:08:28 +08:00
parent 610e7850d3
commit 2c168411de
1 changed files with 3 additions and 0 deletions

View File

@ -410,6 +410,9 @@ class PogalViewSet(CreateUpdateCustomMixin, ModelViewSet):
if self.action in ['create', 'update']:
return PgoalCreateUpdateSerializer
return super().get_serializer_class()
def perform_destroy(self, instance):
instance.delete(soft=False)
class Task2ViewSet(CreateUpdateCustomMixin, ModelViewSet):
perms_map = {'get': '*', 'post': 'task2',