'Returns the keyword arguments for instantiating the form.'

def get_form_kwargs(self):

    kwargs = super(ModelFormMixin, self).get_form_kwargs()
    kwargs.update({'instance': self.object})
    return kwargs
