SIGN IN SIGN UP

Mark FileField as nullable in response when not required #1493

DRF's FileField.to_representation returns None for empty values regardless
of allow_null, so model fields with blank=True (which produces required=False
but allow_null=False at the serializer) need nullable: true in the response
schema. Limit the new branch to direction == 'response' so request schemas
are unaffected.
M
mojtaba sohrabi committed
4d60ade3f3c97aa4e612d6128f2ed904092d7187
Parent: aa2cbfe