-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
when the views is called I get
AttributeError: 'Apartment' object has no attribute 'geom'
does the model field necessarily storing GeoJSON have to be called "geom"? In my case it's conveniently called "position"
class Apartment(models.Model):
[some indentation] position = PointField()
but I can't serialize these model-objects by doing so in my view:
GeoJSONSerializer().serialize(Apartment.objects.all(), use_natural_keys=True, with_modelname=False)
is there something I ignore or that I'm not understanding?
PS. I'm also looking for information about dealing with the GeoJSON "properties" data, I need to populate it with information from my models. Any documentation about this? I couldn't locate it.
Metadata
Metadata
Assignees
Labels
No labels