search

Home  >  Q&A  >  body text

python - Django精确查询某个字段

大家讲道理大家讲道理2892 days ago438

reply all(1)I'll reply

  • 阿神

    阿神2017-04-18 09:34:27

    User.objects.only('id').get(username=xxx)

    reply
    0
  • Cancelreply