fix: base get_alld_perms 传参

This commit is contained in:
caoqianming 2024-10-09 14:18:11 +08:00
parent 1e82f73422
commit dc3c11d3b6
1 changed files with 3 additions and 3 deletions

View File

@ -319,15 +319,15 @@ class PermissionViewSet(CustomModelViewSet):
def perform_create(self, serializer):
super().perform_create(serializer)
MyThread(target=get_alld_perms, args=()).start_p()
MyThread(target=get_alld_perms, kwargs={"update_cache": True}).start_p()
def perform_update(self, serializer):
super().perform_update(serializer)
MyThread(target=get_alld_perms, args=()).start_p()
MyThread(target=get_alld_perms, kwargs={"update_cache": True}).start_p()
def perform_destroy(self, instance):
super().perform_destroy(instance)
MyThread(target=get_alld_perms, args=()).start_p()
MyThread(target=get_alld_perms, kwargs={"update_cache": True}).start_p()
class DeptViewSet(CustomModelViewSet):
"""部门-增删改查