Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make method_name optional in SerializerMethodField
https://www.django-rest-framework.org/api-guide/fields/#serializermethodfield You can leave the method_name parameter empty, to get a default value. For a long time, drf even gave an error when you provided a parameter that matched `get_` your field name: encode/django-rest-framework#2420
- Loading branch information