From 85240e9170e6a472c2497d36610ec612607a6ff9 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 12 Jun 2018 09:26:09 -0500 Subject: added date to sightings so I can back date --- app/sightings/admin.py | 1 - app/sightings/forms.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'app/sightings') 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') } -- cgit v1.2.3-70-g09d2