mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-28 12:38:22 +00:00
Interim commit to get polymorphic migrations working
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user