-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e4f3e6
commit 823c54d
Showing
3 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from .annotations import AnnotationsAdmin | ||
from .image import ImageAdmin | ||
from .recording import RecordingAdmin | ||
|
||
__all__ = [ | ||
'ImageAdmin', | ||
'RecordingAdmin', | ||
'AnnotationsAdmin', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from django.contrib import admin | ||
|
||
from bats_ai.core.models import Annotations | ||
|
||
|
||
@admin.register(Annotations) | ||
class AnnotationsAdmin(admin.ModelAdmin): | ||
list_display = [ | ||
'pk', | ||
'recording', | ||
'owner', | ||
'start_time', | ||
'end_time', | ||
'low_freq', | ||
'high_freq', | ||
'comments', | ||
] | ||
list_select_related = True | ||
# list_select_related = ['owner'] | ||
filter_horizontal = ('species',) # or filter_vertical | ||
autocomplete_fields = ['owner'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters