Fixed formatting of _readable_fields list comprehension to match the formatting of the _writable_fields list comprehension.

This commit is contained in:
Omer Katz 2015-06-20 08:51:03 +03:00
parent 67ff078388
commit 1701ddae35

View File

@ -324,7 +324,10 @@ class Serializer(BaseSerializer):
@cached_property @cached_property
def _readable_fields(self): 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): def get_fields(self):
""" """