mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fixed formatting of _readable_fields list comprehension to match the formatting of the _writable_fields list comprehension.
This commit is contained in:
parent
67ff078388
commit
1701ddae35
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user