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
DRF's SerializerMethodField makes it easy to avoid defining a method name as it auto-computes a method name by prepending get_ to the field source.
With DJA's SerializerMethodResourceRelatedField, one has to define the source attribute as without it, the method name conflicts with the field name (i'm not sure to be crystal-clear here 😕 ).
I find it:
Annoying (in a very minor way)
Not consistent with what developers are used to with vanilla DRF
So if you agree with me, i can probably open a PR that adds this bit of sugar (although i'm not sure to understand all the implications for the read/write use case, but i can give it a try).