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
0a6f1b6a
Commit
0a6f1b6a
authored
4 years ago
by
Valentin Rigal
Browse files
Options
Downloads
Patches
Plain Diff
Fix corpus admin inlines display
parent
0ed8d59f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1171
Fix corpus admin inlines display
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex/documents/admin.py
+1
-2
1 addition, 2 deletions
arkindex/documents/admin.py
with
1 addition
and
2 deletions
arkindex/documents/admin.py
+
1
−
2
View file @
0a6f1b6a
...
...
@@ -27,12 +27,11 @@ class ElementTypeInline(admin.TabularInline):
class
CorpusAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'
id
'
,
'
name
'
,
'
public
'
,
'
repository
'
)
search_fields
=
(
'
name
'
,
)
inlines
=
(
ElementTypeInline
,
)
inlines
=
(
ElementTypeInline
,
UserMembershipInline
,
GroupMembershipInline
)
def
has_delete_permission
(
self
,
request
,
obj
=
None
):
# Require everyone to use the asynchronous corpus deletion
return
False
inlines
=
(
UserMembershipInline
,
GroupMembershipInline
)
class
ClassificationInline
(
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