V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ooooops
V2EX  ›  Django

model 里面的 manyTomany 如果传递参数啊?

  •  
  •   ooooops · Apr 6, 2018 · 2627 views
    This topic created in 2944 days ago, the information mentioned may be changed or developed.
    Model 里面有个 manyTomany 的参数叫 tags, 在 http POST 请求里面, 如何指定这个值啊, 设置了 数组,但是好像没有被保存。

    同样 PUT 去修改的时候,也没用被修改。

    修改的时候使用的 是 serializer.save().
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4053 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 05:09 · PVG 13:09 · LAX 22:09 · JFK 01:09
    ♥ Do have faith in what you're doing.