'Returns the keyword arguments for instantiating the form.'

def get_form_kwargs(self):

    kwargs = {u'user': self.request.user, u'initial': self.get_initial()}
    if (self.request.method in [u'POST', u'PUT']):
        kwargs.update({u'data': self.request.POST, u'files': self.request.FILES})
    return kwargs
