Interim commit to get polymorphic migrations working

This commit is contained in:
Fergal Moran
2012-12-03 19:00:32 +00:00
parent 8c521099eb
commit 83e90d2383
14 changed files with 796 additions and 440 deletions

View File

@@ -14,11 +14,14 @@ class CommentResource(BackboneCompatibleResource):
resource_name = 'comments'
filtering = {
"mix": ('exact',),
}
}
authorization = Authorization()
authentication = Authentication()
always_return_data = True
def prepend_urls(self):
urls = []
def obj_create(self, bundle, request=None, **kwargs):
bundle.data['user'] = {'pk': request.user.pk}
return super(CommentResource, self).obj_create(bundle, request, user=request.user)