Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
edb3df01
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
edb3df01
编写于
11月 02, 2021
作者:
J
Jaesun Park
提交者:
GitHub
11月 02, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update project updated_time (#3810) (#3814)
上级
78363b87
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
39 addition
and
3 deletion
+39
-3
CHANGELOG.md
CHANGELOG.md
+1
-0
cvat/apps/engine/migrations/0043_auto_20211027_0718.py
cvat/apps/engine/migrations/0043_auto_20211027_0718.py
+18
-0
cvat/apps/engine/models.py
cvat/apps/engine/models.py
+1
-1
cvat/apps/engine/views.py
cvat/apps/engine/views.py
+19
-2
未找到文件。
CHANGELOG.md
浏览文件 @
edb3df01
...
...
@@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
Incorrect work when copy job list with "Copy" button (
<https://github.com/openvinotoolkit/cvat/pull/3749>
)
-
Iterating over manifest (
<https://github.com/openvinotoolkit/cvat/pull/3792>
)
-
Manifest removing (
<https://github.com/openvinotoolkit/cvat/pull/3791>
)
-
Fixed project updated date (
<https://github.com/openvinotoolkit/cvat/pull/3814>
)
-
Fixed dextr deployment (
<https://github.com/openvinotoolkit/cvat/pull/3820>
)
-
Migration of
`dataset_repo`
application (
<https://github.com/openvinotoolkit/cvat/pull/3827>
)
-
Helm settings for external psql database were unused by backend (
<https://github.com/openvinotoolkit/cvat/pull/3779>
)
...
...
cvat/apps/engine/migrations/0043_auto_20211027_0718.py
0 → 100644
浏览文件 @
edb3df01
# Generated by Django 3.1.13 on 2021-10-27 07:18
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'engine'
,
'0042_auto_20210830_1056'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'project'
,
name
=
'updated_date'
,
field
=
models
.
DateTimeField
(
auto_now
=
True
),
),
]
cvat/apps/engine/models.py
浏览文件 @
edb3df01
...
...
@@ -189,7 +189,7 @@ class Project(models.Model):
on_delete
=
models
.
SET_NULL
,
related_name
=
"+"
)
bug_tracker
=
models
.
CharField
(
max_length
=
2000
,
blank
=
True
,
default
=
""
)
created_date
=
models
.
DateTimeField
(
auto_now_add
=
True
)
updated_date
=
models
.
DateTimeField
(
auto_now
_add
=
True
)
updated_date
=
models
.
DateTimeField
(
auto_now
=
True
)
status
=
models
.
CharField
(
max_length
=
32
,
choices
=
StatusChoice
.
choices
(),
default
=
StatusChoice
.
ANNOTATION
)
training_project
=
models
.
ForeignKey
(
TrainingProject
,
null
=
True
,
blank
=
True
,
on_delete
=
models
.
SET_NULL
)
...
...
cvat/apps/engine/views.py
浏览文件 @
edb3df01
...
...
@@ -564,14 +564,28 @@ class TaskViewSet(auth.TaskGetQuerySetMixin, viewsets.ModelViewSet):
raise
serializers
.
ValidationError
(
"Unexpected action specified for the request"
)
def
perform_update
(
self
,
serializer
):
instance
=
serializer
.
instance
project_id
=
instance
.
project_id
updated_instance
=
serializer
.
save
()
if
project_id
!=
updated_instance
.
project_id
:
if
project_id
is
not
None
:
Project
.
objects
.
get
(
id
=
project_id
).
save
()
if
updated_instance
.
project_id
is
not
None
:
Project
.
objects
.
get
(
id
=
updated_instance
.
project_id
).
save
()
def
perform_create
(
self
,
serializer
):
owner
=
self
.
request
.
data
.
get
(
'owner'
,
None
)
if
owner
:
self
.
_validate_task_limit
(
owner
)
serializer
.
save
()
instance
=
serializer
.
save
()
else
:
self
.
_validate_task_limit
(
self
.
request
.
user
)
serializer
.
save
(
owner
=
self
.
request
.
user
)
instance
=
serializer
.
save
(
owner
=
self
.
request
.
user
)
if
instance
.
project
:
db_project
=
instance
.
project
db_project
.
save
()
def
perform_destroy
(
self
,
instance
):
task_dirname
=
instance
.
get_task_dirname
()
...
...
@@ -580,6 +594,9 @@ class TaskViewSet(auth.TaskGetQuerySetMixin, viewsets.ModelViewSet):
if
instance
.
data
and
not
instance
.
data
.
tasks
.
all
():
shutil
.
rmtree
(
instance
.
data
.
get_data_dirname
(),
ignore_errors
=
True
)
instance
.
data
.
delete
()
if
instance
.
project
:
db_project
=
instance
.
project
db_project
.
save
()
@
swagger_auto_schema
(
method
=
'get'
,
operation_summary
=
'Returns a list of jobs for a specific task'
,
responses
=
{
'200'
:
JobSerializer
(
many
=
True
)})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录