django - How to Modify Foreign Key Attribute Field?

前端 未结 0 585
北海茫月
北海茫月 2021-02-18 14:50

serialziers.py

class ProfileSerializer(ModelSerializer):
    user = UserSerializer(read_only=True)

    class Meta:
        model = Profile
        fields = (
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题