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
Commits
a5585b8f
Commit
a5585b8f
authored
3 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Plain Diff
Merge branch 'stale-read-create-elements' into 'master'
Fix stale read on CreateElements Closes
#813
See merge request
!1443
parents
cd6e28e8
0e5f4b5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1443
Fix stale read on CreateElements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/documents/api/elements.py
+1
-0
1 addition, 0 deletions
arkindex/documents/api/elements.py
with
1 addition
and
0 deletions
arkindex/documents/api/elements.py
+
1
−
0
View file @
a5585b8f
...
...
@@ -1343,6 +1343,7 @@ class ElementBulkCreate(CreateAPIView):
return
Element
.
objects
.
none
()
return
Element
\
.
objects
\
.
using
(
'
default
'
)
\
.
filter
(
corpus__in
=
Corpus
.
objects
.
writable
(
self
.
request
.
user
))
\
.
only
(
'
id
'
,
'
corpus_id
'
,
'
image_id
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment