Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Merge requests
!1037
Remove source field from creation endpoints
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove source field from creation endpoints
remove-sources
into
master
Overview
2
Commits
11
Pipelines
0
Changes
2
Merged
Valentin Rigal
requested to merge
remove-sources
into
master
4 years ago
Overview
2
Commits
11
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
02728c73
Prev
Next
Show latest version
2 files
+
21
−
44
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
02728c73
CreateClassification
· 02728c73
Valentin Rigal
authored
4 years ago
arkindex/documents/api/ml.py
+
1
−
1
Options
@@ -377,7 +377,7 @@ class ClassificationCreate(CreateAPIView):
}
def
perform_create
(
self
,
serializer
):
if
serializer
.
validated_data
[
'
source
'
]
and
serializer
.
validated_data
[
'
source
'
].
slug
==
'
manual
'
:
if
serializer
.
validated_data
[
'
worker_version
'
]
is
None
:
# A manual classification is immediately valid
serializer
.
save
(
moderator
=
self
.
request
.
user
,
Loading