You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently possible to do serializer.as_json(model, { include_description?: false }) which will exclude the description attribute. The default is to include the description.
It would be nice to be able to easily set the default to not include the attribute. Something like:
serializer.as_json(model) would exclude the description serializer.as_json(model, { include_description?: false }) would exclude the description serializer.as_json(model, { include_description?: true }) would include the description
The text was updated successfully, but these errors were encountered:
It's currently possible to do
serializer.as_json(model, { include_description?: false })
which will exclude thedescription
attribute. The default is to include the description.It would be nice to be able to easily set the default to not include the attribute. Something like:
serializer.as_json(model)
would exclude the descriptionserializer.as_json(model, { include_description?: false })
would exclude the descriptionserializer.as_json(model, { include_description?: true })
would include the descriptionThe text was updated successfully, but these errors were encountered: