From da1c6d4129261fdc7f20afb674da7e553d4e3006 Mon Sep 17 00:00:00 2001 From: linchiwei123 <40888469+linchiwei123@users.noreply.github.com> Date: Fri, 19 Jul 2019 14:09:04 +0800 Subject: [PATCH] Fix indent (#6825) --- docs/api-guide/serializers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index aa3b95980..ef70adbe1 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -966,7 +966,7 @@ The following class is an example of a generic serializer that can handle coerci into primitive representations. """ def to_representation(self, obj): - output = {} + output = {} for attribute_name in dir(obj): attribute = getattr(obj, attribute_name) if attribute_name.startswith('_'): @@ -992,7 +992,7 @@ The following class is an example of a generic serializer that can handle coerci else: # Force anything else to its string representation. output[attribute_name] = str(attribute) - return output + return output ---