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
0d87e6e9
Commit
0d87e6e9
authored
3 years ago
by
Bastien Abadie
Browse files
Options
Downloads
Plain Diff
Merge branch 'metadata-admin-raw' into 'master'
Prevent thousands of SQL queries in MetaData admin Closes
#800
See merge request
!1421
parents
5af0b77e
6a7eda57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1421
Prevent thousands of SQL queries in MetaData admin
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/documents/admin.py
+1
-1
1 addition, 1 deletion
arkindex/documents/admin.py
with
1 addition
and
1 deletion
arkindex/documents/admin.py
+
1
−
1
View file @
0d87e6e9
...
...
@@ -76,7 +76,7 @@ class MetaDataAdmin(admin.ModelAdmin):
list_display
=
(
'
id
'
,
'
name
'
,
'
type
'
,
)
list_filter
=
[(
'
type
'
,
EnumFieldListFilter
),
]
readonly_fields
=
(
'
id
'
,
)
raw_id_fields
=
(
'
element
'
,
'
entity
'
,
)
raw_id_fields
=
(
'
element
'
,
'
entity
'
,
'
worker_version
'
)
class
MetaDataInline
(
admin
.
TabularInline
):
...
...
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