Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 django/tastypie,我正在调用 /api/v1/user,并希望返回分配给该用户的组的名称。
知道如何做到这一点吗?我尝试使用各种脱水方法,但无济于事。
我需要将此行添加到 UserResource ...
groups = fields.ManyToManyField(GroupResource, 'groups', null=True, full=True)