Commit fa0a7b9e authored by Daniel W Bond's avatar Daniel W Bond
Browse files

imported and added custom search form to searchview

parent c8f9ec94
......@@ -9,6 +9,7 @@ from django.contrib import admin
from haystack.views import SearchView
from django.views.generic import RedirectView
# imports from your apps
from accounts.forms import AccountSearchForm
from .views import HomePageView, RedirectSettings, RedirectSlug
......@@ -30,7 +31,8 @@ urlpatterns = patterns('',
url(r'^welcome/', include('welcome.urls')),
# search
url(r'^search/', login_required(SearchView(), login_url='login'), name='search'),
url(r'^search/', login_required(SearchView(form_class=AccountSearchForm),
login_url='login'), name='search'),
# login and logout
url(r'^login/', 'accounts.views.custom_cas_login', name='login'),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment