Django-geojson

Latest version: v4.1.0

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

2.3.0

==================

- Python 3 support (thanks amarandon)
- Add bbox at feature level (thanks 7wonders)

2.2.0

==================

- Deserialization: add ability to specify model name as option (thanks Vross)
- Deserialization: look-up ``ìd`` value in properties whe missing at feature level: (thanks Vross)

2.1.1

==================

- Set default SRID to 4326 in generic GeoJSON views.

2.1.0

==================

- Serialize reversed relations using natural keys (fixes 8)
- Support empty geometries (None or NULL in Db)
- Fix serializing property in upper class

2.0.1

==================

- Fix usage of simplify.
- Expose ``force2d`` option in view
- Allow to have ``pk`` or ``id`` in properties if explicitly listed

2.0.0

==================

- Complete rewrite using jeffkistler and glenrobertson code
- CRS is added to GeoJSON ouput by default
- Ability to build ``pk`` dynamically by passing a lambda
- Ability to provide a ``bbox``
- Ability to use Django natural keys
- Support of *ValuesQuerySet*
- Support of *ForeignKey* and *ManyToMany*
- Added ``force2d`` option

** Backwards incompatible changes **

- Geom field is not guessed automatically : Use ``geometry_field`` option, default is ``'geom'``.
- no more ``pk`` in properties : use feature ``id``, or list ``pk`` in properties explicitly.
- ``fields`` list in ``GeoJSONLayer`` was renamed ``properties``.

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.