You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: