From 1701ddae35436c146897aa5fa1738a6550c19c61 Mon Sep 17 00:00:00 2001 From: Omer Katz Date: Sat, 20 Jun 2015 08:51:03 +0300 Subject: [PATCH] Fixed formatting of _readable_fields list comprehension to match the formatting of the _writable_fields list comprehension. --- rest_framework/serializers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index c116cc72f..a404d4e04 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -324,7 +324,10 @@ class Serializer(BaseSerializer): @cached_property def _readable_fields(self): - return [field for field in self.fields.values() if not field.write_only] + return [ + field for field in self.fields.values() + if not field.write_only + ] def get_fields(self): """