[Django]-Rest Framework Ember and sideloading

2👍

I just ran into the very same problem. Our set-up is also Ember + DRF. And I have found a solution.

You could override the create method like this:

def create(self, request):
    self.resource_name = 'document'
    data = request.DATA # returns the right querydict now
    # do what you want

In this way, you’re keeping the side load by using resource_name = false in cases other than create.

👤LShi

Leave a comment