From b48f5010a5d07bbde2d5a9d17d1fab30985038e9 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 30 Jul 2014 12:51:56 +0100 Subject: [PATCH] Latest docs build --- api-guide/fields.html | 5 ++++- api-guide/serializers.html | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/api-guide/fields.html b/api-guide/fields.html index a79382011..fc1e8ac5c 100644 --- a/api-guide/fields.html +++ b/api-guide/fields.html @@ -211,6 +211,7 @@ a.fusion-poweredby {
  • Examples
  • Third party packages
  • DRF Compound Fields
  • +
  • DRF Extra Fields
  • @@ -449,12 +450,14 @@ class ColourField(serializers.WritableField): """ Serialize the object's class name. """ - return obj.__class__ + return obj.__class__.__name__

    Third party packages

    The following third party packages are also available.

    DRF Compound Fields

    The drf-compound-fields package provides "compound" serializer fields, such as lists of simple values, which can be described by other fields rather than serializers with the many=True 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.

    +

    DRF Extra Fields

    +

    The drf-extra-fields package provides extra serializer fields for REST framework, including Base64ImageField and PointField classes.

    diff --git a/api-guide/serializers.html b/api-guide/serializers.html index cbfc334e0..084767038 100644 --- a/api-guide/serializers.html +++ b/api-guide/serializers.html @@ -6,7 +6,7 @@ - + @@ -206,6 +206,8 @@ a.fusion-poweredby {
  • Advanced serializer usage
  • Dynamically modifying fields
  • Customising the default fields
  • +
  • Third party packages
  • +
  • MongoengineModelSerializer
  • @@ -662,6 +664,11 @@ The ModelSerializer class lets you automatically create a Serialize def get_pk_field(self, model_field): return None +
    +

    Third party packages

    +

    The following third party packages are also available.

    +

    MongoengineModelSerializer

    +

    The django-rest-framework-mongoengine package provides a MongoEngineModelSerializer serializer class that supports using MongoDB as the storage layer for Django REST framework.