2019年8月2日

django跨表联查传输数据到前端

摘要: 需求:通过一对多的表关联字段,拿到多的一方所有数据,再通过序列化传到前端页面! models.py class Infomation(BaseModel): title = models.CharField(max_length=64, verbose_name='资讯标题') title_photo = models.ImageField(upload_to='titl... 阅读全文

posted @ 2019-08-02 15:30 michael-chang 阅读(677) 评论(0) 推荐(0)

导航