-
-
Couldn't load subscription status.
- Fork 207
Closed
Labels
Description
Given the following models, is there a way to serialize MainModel as Geojson by specifying the geo_field attribute from the linked GeoModel ?
class GeoModel(models.Model):
point = models.PointField()
objects = models.GeoManager()
class MainModel(models.Model):
geo_model = models.ForeignKey(GeoModel)
Willing to help contributing if some insight about implementation could be shared. Thanks