diff gpp/urls.py @ 438:524fd1b3919a

Fixing #214; don't need a custom model search view. All the info is in the template. Wrote a template tag to extract the info from the request context and urlencode them.
author Brian Neal <bgneal@gmail.com>
date Wed, 18 May 2011 03:04:25 +0000
parents d4d167876c25
children 3b30286adba5
line wrap: on
line diff
--- a/gpp/urls.py	Sat May 14 19:02:07 2011 +0000
+++ b/gpp/urls.py	Wed May 18 03:04:25 2011 +0000
@@ -7,7 +7,7 @@
 
 from news.feeds import LatestNewsFeed
 from forums.feeds import ForumsFeed
-from custom_search import ModelSearchView, CustomModelSearchForm
+from custom_search import CustomModelSearchForm
 
 
 admin.autodiscover()
@@ -53,8 +53,7 @@
 # Haystack search views
 urlpatterns += patterns('haystack.views',
     url(r'^search/$',
-        search_view_factory(view_class=ModelSearchView,
-            form_class=CustomModelSearchForm, load_all=True),
+        search_view_factory(form_class=CustomModelSearchForm, load_all=True),
         name='haystack_search'),
 )