Added user OneToOneField to Wishlist in api
parent
6ba7b21bd4
commit
4ecff73bdd
|
@ -47,7 +47,7 @@ class EditionCoverResource(ModelResource):
|
|||
resource_name = 'editioncover'
|
||||
|
||||
class WishlistResource(ModelResource):
|
||||
# add a user
|
||||
user = fields.ToOneField(UserResource, 'user')
|
||||
works = fields.ToManyField(WorkResource, 'works')
|
||||
class Meta:
|
||||
queryset = models.Wishlist.objects.all()
|
||||
|
|
Loading…
Reference in New Issue