Added user OneToOneField to Wishlist in api

pull/1/head
Raymond Yee 2011-09-12 16:22:37 -07:00
parent 6ba7b21bd4
commit 4ecff73bdd
1 changed files with 1 additions and 1 deletions

View File

@ -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()