diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 32ce3d61..606d47aa 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -686,10 +686,10 @@ class MlogChangeSerializer(CustomModelSerializer): model = Mlog fields = ['id', 'work_end_time', 'handle_user', 'note', 'oinfo_json', 'test_file', 'test_user', 'test_time', 'equipment', "team"] - def validate(self, attrs): - if attrs.get('work_end_time', None): - attrs['handle_date'] = localdate(attrs['work_end_time']) - return attrs + # def validate(self, attrs): + # if attrs.get('work_end_time', None): + # attrs['handle_date'] = localdate(attrs['work_end_time']) + # return attrs class CountJsonSerializer(serializers.Serializer):