Why no trim_whitespace option on RelatedField and SlugRelatedField? #8519
Unanswered
lionelbrits
asked this question in
Ideas & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was disappointed to see that I can't specify
trim_whitespace=true
onSlugRelatedField
so that if my JSON comes in with trailing whitespace the system returns a "not found", so I have to patch the incoming data manually inget_serializer()
instead, which seems inelegant. I guess DRF is pretty much frozen now, so this probably isn't going to change, but it would be nice to have this likeCharField
has.Beta Was this translation helpful? Give feedback.
All reactions