def get_xeditable_form_kwargs(self):
        """ Returns a dict of keyword arguments to be sent to the xeditable form class. """
        kwargs = {
            'model': self.get_queryset().model,
        }
        if self.request.method in ('POST', 'PUT'):
            kwargs.update({
                'data': self.request.POST,
            })
        return kwargs
dataset/ETHPy150Open pivotal-energy-solutions/django-datatable-view/datatableview/views/xeditable.py/XEditableMixin.get_xeditable_form_kwargs/original