aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide
diff options
context:
space:
mode:
Diffstat (limited to 'api-guide')
-rw-r--r--api-guide/fields.html3
-rw-r--r--api-guide/serializers.html3
-rw-r--r--api-guide/throttling.html2
3 files changed, 7 insertions, 1 deletions
diff --git a/api-guide/fields.html b/api-guide/fields.html
index fc1e8ac5..ad29a6cb 100644
--- a/api-guide/fields.html
+++ b/api-guide/fields.html
@@ -212,6 +212,7 @@ a.fusion-poweredby {
<li class="main"><a href="#third-party-packages">Third party packages</a></li>
<li><a href="#drf-compound-fields">DRF Compound Fields</a></li>
<li><a href="#drf-extra-fields">DRF Extra Fields</a></li>
+<li><a href="#django-rest-framework-gis">django-rest-framework-gis</a></li>
<div class="promo">
@@ -458,6 +459,8 @@ class ColourField(serializers.WritableField):
<p>The <a href="http://drf-compound-fields.readthedocs.org">drf-compound-fields</a> package provides "compound" serializer fields, such as lists of simple values, which can be described by other fields rather than serializers with the <code>many=True</code> option. Also provided are fields for typed dictionaries and values that can be either a specific type or a list of items of that type.</p>
<h2 id="drf-extra-fields">DRF Extra Fields</h2>
<p>The <a href="https://github.com/Hipo/drf-extra-fields">drf-extra-fields</a> package provides extra serializer fields for REST framework, including <code>Base64ImageField</code> and <code>PointField</code> classes.</p>
+<h2 id="django-rest-framework-gis">django-rest-framework-gis</h2>
+<p>The <a href="https://github.com/djangonauts/django-rest-framework-gis">django-rest-framework-gis</a> package provides geographic addons for django rest framework like a <code>GeometryField</code> field and a GeoJSON serializer.</p>
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->
diff --git a/api-guide/serializers.html b/api-guide/serializers.html
index 08476703..850b6dc5 100644
--- a/api-guide/serializers.html
+++ b/api-guide/serializers.html
@@ -208,6 +208,7 @@ a.fusion-poweredby {
<li><a href="#customising-the-default-fields">Customising the default fields</a></li>
<li class="main"><a href="#third-party-packages">Third party packages</a></li>
<li><a href="#mongoenginemodelserializer">MongoengineModelSerializer</a></li>
+<li><a href="#geofeaturemodelserializer">GeoFeatureModelSerializer</a></li>
<div class="promo">
@@ -669,6 +670,8 @@ The <code>ModelSerializer</code> class lets you automatically create a Serialize
<p>The following third party packages are also available.</p>
<h2 id="mongoenginemodelserializer">MongoengineModelSerializer</h2>
<p>The <a href="https://github.com/umutbozkurt/django-rest-framework-mongoengine">django-rest-framework-mongoengine</a> package provides a <code>MongoEngineModelSerializer</code> serializer class that supports using MongoDB as the storage layer for Django REST framework.</p>
+<h2 id="geofeaturemodelserializer">GeoFeatureModelSerializer</h2>
+<p>The <a href="https://github.com/djangonauts/django-rest-framework-gis">django-rest-framework-gis</a> package provides a <code>GeoFeatureModelSerializer</code> serializer class that supports GeoJSON both for read and write operations.</p>
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->
diff --git a/api-guide/throttling.html b/api-guide/throttling.html
index 5739aa21..e0bb189c 100644
--- a/api-guide/throttling.html
+++ b/api-guide/throttling.html
@@ -249,7 +249,7 @@ class ExampleView(APIView):
return Response(content)
</code></pre>
<p>Or, if you're using the <code>@api_view</code> decorator with function based views.</p>
-<pre class="prettyprint lang-py"><code>@api_view('GET')
+<pre class="prettyprint lang-py"><code>@api_view(['GET'])
@throttle_classes([UserRateThrottle])
def example_view(request, format=None):
content = {