aboutsummaryrefslogtreecommitdiffstats
path: root/api-guide/fields.html
diff options
context:
space:
mode:
Diffstat (limited to 'api-guide/fields.html')
-rw-r--r--api-guide/fields.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/api-guide/fields.html b/api-guide/fields.html
index a7938201..fc1e8ac5 100644
--- a/api-guide/fields.html
+++ b/api-guide/fields.html
@@ -211,6 +211,7 @@ a.fusion-poweredby {
<li><a href="#examples">Examples</a></li>
<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>
<div class="promo">
@@ -449,12 +450,14 @@ class ColourField(serializers.WritableField):
"""
Serialize the object's class name.
"""
- return obj.__class__
+ return obj.__class__.__name__
</code></pre>
<h1 id="third-party-packages">Third party packages</h1>
<p>The following third party packages are also available.</p>
<h2 id="drf-compound-fields">DRF Compound Fields</h2>
<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>
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->