mirror of https://github.com/fspc/workstand.git
Drew Larson
9 years ago
6 changed files with 42 additions and 6 deletions
@ -0,0 +1,9 @@ |
|||
from haystack import indexes |
|||
from .models import Member |
|||
|
|||
|
|||
class MemberIndex(indexes.SearchIndex, indexes.Indexable): |
|||
text = indexes.EdgeNgramField(document=True, use_template=True) |
|||
|
|||
def get_model(self): |
|||
return Member |
@ -0,0 +1,2 @@ |
|||
{{ object.email }} |
|||
{{ object.get_full_name }} |
@ -1,7 +1,8 @@ |
|||
from django.conf.urls import url |
|||
|
|||
from .views import MemberFormView |
|||
from .views import MemberFormView, MemberSearchView |
|||
urlpatterns = [ |
|||
url(r'^new/$', MemberFormView.as_view(), name='signup'), |
|||
url(r'^search/(?P<query>[\w@\.\+]+)/$', MemberSearchView.as_view(), name='member_search'), |
|||
url(r'^edit/(?P<member_id>[0-9]+)/$', MemberFormView.as_view(), name='member_edit') |
|||
] |
|||
|
Loading…
Reference in new issue