Default SerializerMethodField's help_text to the docstring of the method
Description
Just a nice little default that occurred to me tonight. We're using the automatic OpenAPI generation stuff so the help text on serializer fields ends up visible in that, and I would have copied the same text into both.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Can someone merge this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
- I prefer the behaviour you've got here.
- Changing this for existing APIs might not be ideal for some folks.
So?...
@tomchristie It wouldn't affect anyone that has explicit help text defined. I guess the worry is this would expose __doc__ which might have something sensitive in it?