-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not calling function with source= anymore #4602
Comments
I'm not able to replicate this. For example...
Results in this... Could you try to reduce this to a reproducible test case, or similar? |
class IndividuSerializer(ModelSerializer):
# ...
sexe_display = CharField(source='get_sexe_display', label='sexe', read_only=True) The field
But In drf 'fields.py' line 62, method |
I've started a patch which is failing - will have to come back to this later. The problem with the patch implementation is that it can't determine if _args and *_kwargs are safely callable. |
For those in need of a quick fix for |
Here the serializer:
The API doesn't display the choice values from Django models anymore.
In the previous release it worked just fine. ;)
The text was updated successfully, but these errors were encountered: