django - Not able to expose 'auth_user_groups' table in Tastypie UserResource -
I am struggling to know that my UserResource Tastypie modelResource is a way to unselect the 'auth_user_groups' table.
I am able to receive groups and users, but it is not certain how the user is assigned within my user resources. Here are model resons I: Thank you for your help. / div> As stated: ModelResource subclass So you have to add group fi to your UserResource :
< Code> Category in UserResource: Group = fields.ManyToManyField (GroupResource, 'groups', null = true, full = true) Class Meta: [...] < / Html>
Comments
Post a Comment