diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index c6b9e548..0b0f1504 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -396,13 +396,13 @@ class MlogSerializer(CustomModelSerializer): attrs['handle_date'] = attrs['work_end_time'].date() elif attrs['work_start_time']: attrs['handle_date'] = attrs['work_start_time'].date() - if attrs['handle_date'] >= mtask.start_date and attrs['handle_date'] <= mtask.end_date: - pass - else: - if attrs['handle_date'] >= mtask.start_date and attrs['handle_date'] <= mtask.end_date: - pass - else: - raise ValidationError('操作日期错误') + # if attrs['handle_date'] >= mtask.start_date and attrs['handle_date'] <= mtask.end_date: + # pass + # else: + # if attrs['handle_date'] >= mtask.start_date and attrs['handle_date'] <= mtask.end_date: + # pass + # else: + # raise ValidationError('操作日期错误') return attrs