How sqlmodel implements the same functionality as SerializerMethodField in DRF? #786
Unanswered
rubbish822
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
from rest_framework import serializers
from drf_spectacular.utils import extend_schema_field
class UserSerializer(serializers.ModelSerializer):
full_name = serializers.SerializerMethodField(read_only=True)
Beta Was this translation helpful? Give feedback.
All reactions