code: def get_search_form(self):
          
          #noinspection PyUnresolvedReferences
          if 'q' in self.request.GET:
              #noinspection PyUnresolvedReferences
              return self.search_form_class(self.request.GET)
          else:
              return self.search_form_class(placeholder=_(u'Search'))
docs: Returns search form instance.
  
          :rtype: django.forms.ModelForm.