summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-05-09 20:15:22 +0000
committerluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-05-09 20:15:22 +0000
commit7f87d91f366e2d1776576741d39e70b4846200dc (patch)
treeb9e9b8a574d135474f97ff0f8d175652f087ecc6 /apps
parent41b8027eb1efc4e2543d0dcb0b2660fcbed4a951 (diff)
updated parks model to include datefield of created date also change visited to DateField instead of DatetimeField
Diffstat (limited to 'apps')
-rw-r--r--apps/projects/admin.py2
-rw-r--r--apps/projects/models/natparks.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/apps/projects/admin.py b/apps/projects/admin.py
index 66e1318..c128c86 100644
--- a/apps/projects/admin.py
+++ b/apps/projects/admin.py
@@ -119,7 +119,7 @@ class NationalParksAdmin(OSMGeoAdmin):
list_filter = ('state', 'type')
search_fields = ['name',]
fieldsets = (
- ('Project', {'fields': ('name', 'tag_line',('state','visited'),'dek','date_visited_begin','date_visited_end','mpoly','image',('post','gallery'),('url','size','fee', 'camping_fee'),'zoom'), 'classes': ('show','extrapretty','wide')}),
+ ('Project', {'fields': ('name', 'tag_line',('state','visited'),'dek','date_visited_begin','date_visited_end','mpoly','image',('post','gallery'),('url','size','fee', 'camping_fee','date_park_created'),'zoom'), 'classes': ('show','extrapretty','wide')}),
)
diff --git a/apps/projects/models/natparks.py b/apps/projects/models/natparks.py
index c78052c..fa0c84b 100644
--- a/apps/projects/models/natparks.py
+++ b/apps/projects/models/natparks.py
@@ -24,8 +24,9 @@ class NationalParks(models.Model):
url = models.CharField(max_length=250, null=True)
code= models.CharField(max_length=16)
unit_name= models.CharField(max_length=254)
- date_visited_begin = models.DateTimeField('Date Visited',null=True)
- date_visited_end = models.DateTimeField('Date Visited',null=True)
+ date_visited_begin = models.DateField('Date Visited',null=True)
+ date_visited_end = models.DateField('Date Visited',null=True)
+ date_park_created = models.DateField('Date Park Created',null=True)
zoom= models.IntegerField(null=True)
mpoly = models.MultiPolygonField(null=True)
visited = models.BooleanField(default=False)