阅读背景:

如何检索Django中所有对象的字段列表?

来源:互联网 

I want to retrieve a list of all of the values for one field from a query in django. For example, I have a query of users, but rather than a queryset (or list) of user objects, I want a list just the usernames (strings). In a sense this is asking to restrict only to one column of data.I want to retrieve a list of all of the values




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: