4👍
PostSerializer():
user = UserSerializer()
class Meta:
model = Post
fields = ('name', 'user')
Source:stackexchange.com
4👍
PostSerializer():
user = UserSerializer()
class Meta:
model = Post
fields = ('name', 'user')