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
f5b041c4
Commit
f5b041c4
authored
4 years ago
by
Eva Bardou
Browse files
Options
Downloads
Patches
Plain Diff
Prevent timeouts when opening a DataImport or an Element in the Django admin
parent
194fd092
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1169
Prevent timeouts when opening a DataImport or an Element in the Django admin
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex/dataimport/admin.py
+1
-0
1 addition, 0 deletions
arkindex/dataimport/admin.py
arkindex/documents/admin.py
+2
-1
2 additions, 1 deletion
arkindex/documents/admin.py
with
3 additions
and
1 deletion
arkindex/dataimport/admin.py
+
1
−
0
View file @
f5b041c4
...
...
@@ -12,6 +12,7 @@ class DataFileInline(admin.StackedInline):
class
WorkerRunInline
(
admin
.
StackedInline
):
model
=
DataImport
.
versions
.
through
raw_id_fields
=
(
'
version
'
,
)
extra
=
0
...
...
This diff is collapsed.
Click to expand it.
arkindex/documents/admin.py
+
2
−
1
View file @
f5b041c4
...
...
@@ -38,6 +38,7 @@ class CorpusAdmin(admin.ModelAdmin):
class
ClassificationInline
(
admin
.
TabularInline
):
model
=
Classification
readonly_fields
=
(
'
confidence
'
,
'
high_confidence
'
,
)
raw_id_fields
=
(
'
worker_version
'
,
)
class
AllowedMetaDataAdmin
(
admin
.
ModelAdmin
):
...
...
@@ -54,7 +55,7 @@ class MetaDataAdmin(admin.ModelAdmin):
class
MetaDataInline
(
admin
.
TabularInline
):
model
=
MetaData
raw_id_fields
=
(
'
entity
'
,
)
raw_id_fields
=
(
'
entity
'
,
'
revision
'
,
'
worker_version
'
,
)
class
ElementAdmin
(
admin
.
ModelAdmin
):
...
...
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