Created
February 26, 2012 21:44
-
-
Save MadanThangavelu/1919128 to your computer and use it in GitHub Desktop.
haystack-manager-patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MySearchIndex1(indexes.SearchIndex, indexes.Indexable): | |
author = indexes.CharField(model_attr='author') | |
pub_date = indexes.DateTimeField(model_attr='pub_date') | |
def get_model(self): | |
return MockModel | |
class MySearchIndex2(indexes.SearchIndex, indexes.Indexable): | |
author = indexes.CharField(model_attr='author') | |
pub_date = indexes.DateTimeField(model_attr='pub_date') | |
def get_model(self): | |
return MockModel | |
class meta: | |
index_label='different_connection_name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment