'Returns an instance of the form to be used in this view.'

def get_form(self, form_class=None):

    if (form_class is None):
        form_class = self.get_form_class()
    return form_class(self.request, **self.get_form_kwargs())
