Skip to content

Commit 31fcc9b

Browse files
committed
Update README.rst
Fixed ReST text
1 parent b4feb33 commit 31fcc9b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ List <https://groups.google.com/forum/#!forum/django-rest-framework-gis>`__.
1010
Install
1111
-------
1212

13-
.. code:: bash
13+
.. code-block:: bash
1414
1515
pip install djangorestframework-gis
1616
@@ -35,7 +35,7 @@ above ``GeometryField``.
3535

3636
For example, the following model:
3737

38-
.. code:: python
38+
.. code-block:: python
3939
4040
class Location(models.Model):
4141
"""
@@ -46,9 +46,9 @@ For example, the following model:
4646
state = models.CharField(max_length=100)
4747
point = models.PointField()
4848
49-
By default, the DRF ModelSerializer will output::
49+
By default, the DRF ModelSerializer will output:
5050

51-
.. code:: javascript
51+
.. code-block:: javascript
5252
5353
{
5454
"id": 1,
@@ -58,9 +58,9 @@ By default, the DRF ModelSerializer will output::
5858
"point": "POINT(-123.0208 44.0464)"
5959
}
6060
61-
In contrast, the ``GeoModelSerizalizer`` will output::
61+
In contrast, the ``GeoModelSerizalizer`` will output:
6262

63-
.. code:: javascript
63+
.. code-block:: javascript
6464
6565
{
6666
"id": 1,
@@ -80,7 +80,7 @@ GeoFeatureModelSerializer
8080
which will output data in a format that is **GeoJSON** compatible. Using
8181
the above example, the ``GeoFeatureModelSerializer`` will output:
8282

83-
.. code:: javascript
83+
.. code-block:: javascript
8484
8585
{
8686
"id": 1,
@@ -104,7 +104,7 @@ will create a ``FeatureCollection``:
104104
(**NOTE:** This currenty does not work with the default pagination
105105
serializer)
106106

107-
.. code:: javascript
107+
.. code-block:: javascript
108108
109109
{
110110
"type": "FeatureCollection",
@@ -144,7 +144,7 @@ serializer)
144144
``GeoFeatureModelSerializer`` requires you to define a **``geo_field``**
145145
to be serialized as the "geometry". For example:
146146

147-
.. code:: python
147+
.. code-block:: python
148148
149149
class LocationSerializer(GeoFeatureModelSerializer):
150150
""" A class to serialize locations as GeoJSON compatible data """
@@ -161,7 +161,7 @@ The primary key of the model (usually the "id" attribute) is
161161
automatically put outside the "properties" object (before "type") unless
162162
**``id_field``** is set to False:
163163

164-
.. code:: python
164+
.. code-block:: python
165165
166166
class LocationSerializer(GeoFeatureModelSerializer):
167167
@@ -174,7 +174,7 @@ automatically put outside the "properties" object (before "type") unless
174174
You could also set the **``id_field``** to some other unique field in
175175
your model, like **"slug"**:
176176

177-
.. code:: python
177+
.. code-block:: python
178178
179179
class LocationSerializer(GeoFeatureModelSerializer):
180180
@@ -195,7 +195,7 @@ default, this includes WKT, HEXEWKB, WKB (in a buffer), and GeoJSON.
195195
GeometryFilter
196196
~~~~~~~~~~~~~~
197197

198-
.. code:: python
198+
.. code-block:: python
199199
200200
from rest_framework_gis.filters import GeoFilterSet
201201
@@ -233,7 +233,7 @@ by
233233
GeoDjango <https://docs.djangoproject.com/en/dev/ref/contrib/gis/db-api/#module-django.contrib.gis.db.backends>`__
234234
is up and running:
235235

236-
.. code:: bash
236+
.. code-block:: bash
237237
238238
python setup.py test
239239

0 commit comments

Comments
 (0)