def get_form_kwargs(self):
kwargs = {}<EOL>for key in six.iterkeys(self.form_classes):<EOL><INDENT>if self.request.method in ('<STR_LIT:POST>', '<STR_LIT>'):<EOL><INDENT>kwargs[key] = {<EOL>'<STR_LIT:data>': self.request.POST,<EOL>'<STR_LIT>': self.request.FILES,<EOL>}<EOL><DEDENT>else:<EOL><INDENT>kwargs[key] = {}<EOL><DEDENT><DEDENT>return kwargs<EOL>
Build the keyword arguments required to instantiate the form.