我有一个简单的美味派资源:
class EntryResource(ModelResource):
class Meta:
queryset = POI.objects.all()
resource_name = 'poi'
此资源包含一个字段geom
,它是一个几何字段。Tastypie 将其输出为 WKT(字符串)。我想将其输出为 geoJSON。
有没有一种简单的方法可以让 EntryResource 输出 attr.json 而不是 attr?