Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
astapor
Commits
3617bee5
Commit
3617bee5
authored
Jun 21, 2017
by
Nicolas Noé
Browse files
Small admin improvements.
parent
e5c4a3be
Changes
1
Show whitespace changes
Inline
Side-by-side
website/specimens/admin.py
View file @
3617bee5
...
...
@@ -24,7 +24,7 @@ class SpecimenAdmin(admin.ModelAdmin):
form
=
MyAdminForm
list_display
=
(
'specimen_id'
,
'station'
,
'scientific_name'
,
'identified_by'
,
'specimen_location'
,
'depth_str'
,
'fixation'
)
list_filter
=
(
'identified_by'
,
'specimen_location'
,
'fixation'
,
'station'
)
list_filter
=
(
'identified_by'
,
'specimen_location'
,
'fixation'
,
'station
__expedition
'
)
search_fields
=
[
'scientific_name'
,
'specimen_id'
]
# TODO: document searchable fields in template? (https://stackoverflow.com/questions/11411622/add-help-text-for-search-field-in-admin-py)
...
...
@@ -56,6 +56,6 @@ class ExpeditionAdmin(admin.ModelAdmin):
@
admin
.
register
(
SpecimenPicture
)
class
SpecimenPictureAdmin
(
admin
.
ModelAdmin
):
pass
fields
=
(
'specimen'
,
'image'
,
'high_interest'
)
admin
.
site
.
site_header
=
'Astapor administration'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment