fix: lock_and_check_can_update

This commit is contained in:
caoqianming 2025-09-12 17:02:06 +08:00
parent 34ca36aced
commit 06e86330bd
1 changed files with 2 additions and 2 deletions

View File

@ -208,8 +208,8 @@ class MlogViewSet(CustomModelViewSet):
@classmethod
def lock_and_check_can_update(cls, mlog:Mlog):
mlog_lock:Mlog = Mlog.objects.select_for_update().get(id=mlog.id)
if mlog_lock.submit_time is not None:
# mlog_lock:Mlog = Mlog.objects.select_for_update().get(id=mlog.id)
if mlog.submit_time is not None:
raise ParseError("该记录已提交无法更改")