summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/sightings/admin.py1
-rw-r--r--app/sightings/forms.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/app/sightings/admin.py b/app/sightings/admin.py
index 5d51941..7108bba 100644
--- a/app/sightings/admin.py
+++ b/app/sightings/admin.py
@@ -78,7 +78,6 @@ class APAdmin(admin.ModelAdmin):
js = ('image-loader.js', 'next-prev-links.js')
-
@admin.register(Sighting)
class SightingAdmin(OSMGeoAdmin):
form = SightingsForm
diff --git a/app/sightings/forms.py b/app/sightings/forms.py
index bbc471f..ffb4a40 100644
--- a/app/sightings/forms.py
+++ b/app/sightings/forms.py
@@ -6,7 +6,7 @@ from .models import Sighting
class SightingsForm(autocomplete.FutureModelForm):
class Meta:
model = Sighting
- fields = ('ap', 'point', )
+ fields = ('ap', 'point', 'pub_date')
widgets = {
'ap': autocomplete.ModelSelect2(url='ap-autocomplete')
}