1
0
Fork 0
mirror of https://github.com/correl/codereview.git synced 2025-04-13 01:01:01 -09:00
codereview/dashboard/search_indexes.py

8 lines
228 B
Python

from haystack.indexes import *
from haystack import site
from codereview.dashboard.models import Commit
class CommitIndex(SearchIndex):
text = CharField(document=True, use_template=True)
site.register(Commit, CommitIndex)