摘要: 方案一:在表模型(models)中写,在序列化类中映射 模型层书写: def publish_detail(self): return {'name': self.publish.name, 'city': self.publish.city} 序列化类(serializer)中书写: publis 阅读全文
posted @ 2023-12-21 14:58 wellplayed 阅读(23) 评论(0) 推荐(0) 编辑