Django queryset values get foreign key field “foo” instead of “foo_id”

后端 未结 0 503
慢半拍i
慢半拍i 2021-02-15 17:32

according to the django documentation below:

If you have a field called foo that is a ForeignKey, the default values() call will return a dictionary key call

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