old_contents: # -*- coding: utf-8 -*-
  
  from apps.trails.models import Trail
  from tastypie.authentication import Authentication
  from tastypie.authorization import Authorization
  from tastypie.resources import ModelResource
  
  
  class TrailResource(ModelResource):
      
      class Meta:
          queryset = Trail.objects.all()
          resource_name = 'trails'
          #TODO: proper permission checks
          authentication = Authentication()
          authorization = Authorization()
new_contents: # -*- coding: utf-8 -*-
  
  from apps.trails.models import Trail
  from tastypie.authentication import Authentication
  from tastypie.authorization import Authorization
  from tastypie.contrib.gis.resources import ModelResource 
  
  class TrailResource(ModelResource):
      
      class Meta:
          queryset = Trail.objects.all()
          resource_name = 'trails'
          #TODO: proper permission checks
          authentication = Authentication()
          authorization = Authorization()
subject: use gis modelresource in api. fixes #4