summaryrefslogtreecommitdiff
path: root/app/sightings
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-02-09 09:45:12 -0600
committerluxagraf <sng@luxagraf.net>2018-02-09 09:45:12 -0600
commit709cc73df418d39fa408f7816672eb9624fffb2c (patch)
treebe337388457aad527cf218e1e9deb8825a78d71d /app/sightings
parenta45d0edd9f4f69c59270aa82f137a74c8373e2c2 (diff)
added images to AP admin
Diffstat (limited to 'app/sightings')
-rw-r--r--app/sightings/admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/sightings/admin.py b/app/sightings/admin.py
index c17a1f4..1746b94 100644
--- a/app/sightings/admin.py
+++ b/app/sightings/admin.py
@@ -25,12 +25,13 @@ class APClassAdmin(admin.ModelAdmin):
@admin.register(AP)
class APAdmin(admin.ModelAdmin):
+ form = LGEntryForm
list_display = ('pk', 'common_name', 'scientific_name', 'kind', 'code', 'apclass')
list_filter = ('apclass__kind','apclass')
search_fields = ['common_name', 'scientific_name']
class Media:
- js = ('next-prev-links.js', 'image-preview.js')
+ js = ('image-loader.js','next-prev-links.js')
@admin.register(Sighting)