'Instantiates the form the class should use to process the search query.'

def build_form(self, form_kwargs=None):

    data = None
    kwargs = {u'load_all': self.load_all}
    if form_kwargs:
        kwargs.update(form_kwargs)
    if len(self.request.GET):
        data = self.request.GET
    if (self.searchqueryset is not None):
        kwargs[u'searchqueryset'] = self.searchqueryset
    return self.form_class(data, **kwargs)
