File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
22
22
### Fixed
23
23
- New shape is added when press `` esc `` when drawing instead of cancellation
24
+ - Fixed ` FileNotFoundError ` during dump after moving format files
24
25
25
26
### Security
26
27
-
Original file line number Diff line number Diff line change 1
- # Copyright (C) 2018 Intel Corporation
1
+ # Copyright (C) 2018-2020 Intel Corporation
2
2
#
3
3
# SPDX-License-Identifier: MIT
4
4
5
+ from django .utils import timezone
5
6
from rest_framework import serializers
7
+
6
8
from cvat .apps .annotation import models
7
9
8
10
class AnnotationDumperSerializer (serializers .ModelSerializer ):
@@ -57,6 +59,9 @@ def create(self, validated_data):
57
59
def update (self , instance , validated_data ):
58
60
dumper_names = [handler ["display_name" ] for handler in validated_data ["annotationdumper_set" ]]
59
61
loader_names = [handler ["display_name" ] for handler in validated_data ["annotationloader_set" ]]
62
+ instance .handler_file = validated_data .get ('handler_file' , instance .handler_file )
63
+ instance .owner = validated_data .get ('owner' , instance .owner )
64
+ instance .updated_date = timezone .localtime (timezone .now ())
60
65
61
66
handlers_to_delete = [d for d in instance .annotationdumper_set .all () if d .display_name not in dumper_names ] + \
62
67
[l for l in instance .annotationloader_set .all () if l .display_name not in loader_names ]
You can’t perform that action at this time.
0 commit comments