We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am looking at how to customize serializer
How do I have data from two join tables?
In the restframework, I can do like :
class BookSerializer(serializers.ModelSerializer): category_name = serializers.CharField(source='category.name', read_only=True) publisher_name = serializers.CharField(source='publisher.name', read_only=True) author_last_name = serializers.CharField(source='author.last_name', read_only=True) author_first_name = serializers.CharField(source='author.first_name', read_only=True) class Meta: model = Book fields = ( 'id', 'title', 'category', 'category_name', 'publisher', 'publisher_name', 'author', 'author_last_name', 'author_first_name' )
How should I do in grpc?
I almost got my django-grpc + react CRUD working.
https://github.com/ccapeng/bookstore_grpc https://github.com/ccapeng/bookstore-redux-grpc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am looking at how to customize serializer
How do I have data from two join tables?
In the restframework, I can do like :
How should I do in grpc?
I almost got my django-grpc + react CRUD working.
https://github.com/ccapeng/bookstore_grpc
https://github.com/ccapeng/bookstore-redux-grpc
The text was updated successfully, but these errors were encountered: