summaryrefslogtreecommitdiff
path: root/app/birds/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-11-09 11:32:36 -0800
committerluxagraf <sng@luxagraf.net>2017-11-09 11:32:36 -0800
commitff0316afe40fa8572e787bdc2c5c69fd9c7ace65 (patch)
treedac03bdcc20b7349d8bfac916ae31377f07b9b5b /app/birds/admin.py
parente392dc34c836dc529a72b603c5ee5c9b917c2f37 (diff)
fixed bird admin. maybe.
Diffstat (limited to 'app/birds/admin.py')
-rw-r--r--app/birds/admin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/birds/admin.py b/app/birds/admin.py
index b5c6a7e..a8e3a0b 100644
--- a/app/birds/admin.py
+++ b/app/birds/admin.py
@@ -4,6 +4,7 @@ from birds.models import BirdSighting, BirdAudio, BirdClass, Bird
from photos.forms import GalleryForm
from utils.util import get_latlon
+from utils.widgets import CustomSelectMultiple
class BirdClassAdmin(admin.ModelAdmin):
@@ -20,9 +21,12 @@ class BirdAdmin(admin.ModelAdmin):
class GalleryFormPlus(GalleryForm):
def __init__(self, *args, **kwargs):
- super(GalleryFormPlus, self).__init__(*args, **kwargs)
self.base_fields['seen_by'].widget = CustomSelectMultiple()
-
+ super(GalleryFormPlus, self).__init__(*args, **kwargs)
+
+ class Meta:
+ model = BirdSighting
+ fields = '__all__'
class BirdSightingAdmin(OSMGeoAdmin):
form = GalleryFormPlus