Create a new resource using POST

def post(self, data, request, id):
        """ Create a new resource using POST """
        if id:
            # can't post to individual user
            raise errors.MethodNotAllowed()
        user = self._dict_to_model(data)
        user.save()
        # according to REST, return 201 and Location header
        return Response(201, None, {
            'Location': '%s%d' % (reverse('user'), user.pk)})