diff options
| author | Tom Christie | 2014-07-30 12:51:56 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-07-30 12:51:56 +0100 |
| commit | b48f5010a5d07bbde2d5a9d17d1fab30985038e9 (patch) | |
| tree | c903c8237be569cabee24edbae3635eca2dcf86b /api-guide/fields.html | |
| parent | aa64899087be4d40ecd8631c460db2905556ad38 (diff) | |
| download | django-rest-framework-b48f5010a5d07bbde2d5a9d17d1fab30985038e9.tar.bz2 | |
Latest docs build
Diffstat (limited to 'api-guide/fields.html')
| -rw-r--r-- | api-guide/fields.html | 5 |
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--> |
