for some reason ordereddict causes lots of overhead here
This commit is contained in:
parent
3b4e3bbdba
commit
05dab8acb5
1 changed files with 4 additions and 4 deletions
|
@ -33,10 +33,10 @@ class GeometryMixin(SerializableMixin):
|
|||
if field.name in geometry_affecting_fields}
|
||||
|
||||
def get_geojson_properties(self, *args, **kwargs) -> dict:
|
||||
result = OrderedDict((
|
||||
('type', self.__class__.__name__.lower()),
|
||||
('id', self.pk),
|
||||
))
|
||||
result = {
|
||||
'type': self.__class__.__name__.lower(),
|
||||
'id': self.id
|
||||
}
|
||||
if getattr(self, 'bounds', False):
|
||||
result['bounds'] = True
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue