flake8 formatting

This commit is contained in:
CBuiVNG 2020-08-25 09:55:30 +02:00
parent cd80a8f99d
commit 4a8838143e

View File

@ -36,7 +36,8 @@ def fields_for_serializer(
name in exclude_fields, name in exclude_fields,
field.write_only field.write_only
and not is_input, # don't show write_only fields in Query and not is_input, # don't show write_only fields in Query
field.read_only and is_input field.read_only
and is_input
and lookup_field != name, # don't show read_only fields in Input and lookup_field != name, # don't show read_only fields in Input
] ]
) )