Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cspanring committed Jan 15, 2013
2 parents 87a8026 + c75e22d commit a96e488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parkmap/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@


class ParkAdmin(admin.OSMGeoAdmin):
prepopulated_fields = {'slug': ('name',)}
list_display = ['name', 'parkowner' ]
list_filter = ('neighborhoods', )
search_fields = ['name']
exclude = ('slug', )

def park_image_thumb(self, obj):
if obj.image:
Expand Down
3 changes: 2 additions & 1 deletion parkmap/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def lat_long(self):
def save(self, *args, **kwargs):

self.area = self.geometry.area
self.slug = slugify(self.name)

super(Park, self).save(*args, **kwargs)

Expand Down Expand Up @@ -237,7 +238,7 @@ class Facility(models.Model):
"""

name = models.CharField(max_length=50, blank=True, null=True)
facilitytype = models.ForeignKey(Facilitytype, blank=True, null=True)
facilitytype = models.ForeignKey(Facilitytype)
activity = models.ManyToManyField(Activity, related_name='activity')
location = models.CharField(max_length=50, blank=True, null=True, help_text='Address, nearby Landmark or similar location information.')
status = models.CharField(max_length=50, blank=True, null=True) # FIXME: choices?
Expand Down

0 comments on commit a96e488

Please sign in to comment.