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
6a7eda57
Commit
6a7eda57
authored
3 years ago
by
Erwan Rouchet
Committed by
Bastien Abadie
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Prevent thousands of SQL queries in MetaData admin
parent
5af0b77e
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 @
6a7eda57
...
...
@@ -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