summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-06-12 09:26:09 -0500
committerluxagraf <sng@luxagraf.net>2018-06-12 09:26:09 -0500
commit85240e9170e6a472c2497d36610ec612607a6ff9 (patch)
tree4297968c18e01841d8dfed602fd50ccf4f92a28e
parent91c284b00174f1f11b1bec6fec633dadb9f40dd1 (diff)
added date to sightings so I can back date
-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')
}