from django.conf.urls import url
from haystack.views import SearchView, search_view_factory

from ..forms import AdvancedSearchForm

search_view = search_view_factory(view_class=SearchView,
                                  template='search/advanced_search.html',
                                  form_class=AdvancedSearchForm)

urlpatterns = [
    url(r'^$',
        'haystack.views.basic_search',
        name='cab_search'),
    url(r'^autocomplete/$',
        'cab.views.snippets.autocomplete',
        name='snippet_autocomplete'),
    url(r'^advanced/$',
        search_view,
        name='cab_search_advanced'),
]

@@ -64,16 +64,30 @@
 rchView,
+ basic_search,
  search_
@@ -99,16 +99,16 @@
 factory%0A
-
 %0Afrom ..
@@ -138,16 +138,58 @@
 archForm
+%0Afrom ..views.snippets import autocomplete
 %0A%0Asearch
@@ -413,33 +413,9 @@
 %5E$',
-%0A        'haystack.views.
+ 
 basi
@@ -422,26 +422,17 @@
 c_search
-',%0A       
+,
  name='c
@@ -475,37 +475,9 @@
 /$',
-%0A        'cab.views.snippets.
+ 
 auto
@@ -484,26 +484,17 @@
 complete
-',%0A       
+,
  name='s
@@ -539,24 +539,16 @@
 nced/$',
-%0A       
  search_
@@ -552,24 +552,16 @@
 ch_view,
-%0A       
  name='c

Remove string views in urlpatterns