@@ -249,8 +249,11 @@ Specifying the ID: "id_field"
249
249
#############################
250
250
251
251
The primary key of the model (usually the "id" attribute) is
252
- automatically put outside the "properties" object (before "type") unless
253
- ``id_field `` is set to False:
252
+ automatically used as the ``id `` field of each
253
+ `GeoJSON Feature Object <https://tools.ietf.org/html/draft-butler-geojson#section-2.2 >`_.
254
+
255
+ The default behaviour follows the `GeoJSON RFC <https://tools.ietf.org/html/draft-butler-geojson >`_,
256
+ but it can be disbaled by setting ``id_field `` to ``False ``:
254
257
255
258
.. code-block :: python
256
259
@@ -264,8 +267,7 @@ automatically put outside the "properties" object (before "type") unless
264
267
id_field = False
265
268
fields = (' id' , ' address' , ' city' , ' state' )
266
269
267
- You could also set the ``id_field `` to some other unique field in
268
- your model, like **"slug" **:
270
+ The ``id_field `` can also be set to use some other unique field in your model, eg: ``slug ``:
269
271
270
272
.. code-block :: python
271
273
@@ -300,7 +302,7 @@ read access for a REST client and can be achieved using ``auto_bbox``. Example:
300
302
301
303
302
304
The second approach uses the ``bbox_geo_field `` to specify an addional
303
- GeometryField of the model which will be used to calculate the bounding box. This allows
305
+ `` GeometryField `` of the model which will be used to calculate the bounding box. This allows
304
306
boundingboxes differ from the exact extent of a features geometry. Additionally this
305
307
enables read and write access for the REST client. Bounding boxes send from the client will
306
308
be saved as Polygons. Example:
0 commit comments