mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-15 15:22:19 +00:00
Fix search indexes.
This commit is contained in:
@@ -4,8 +4,8 @@ from .models import Store
|
|||||||
|
|
||||||
class StoreIndex(indexes.SearchIndex, indexes.Indexable):
|
class StoreIndex(indexes.SearchIndex, indexes.Indexable):
|
||||||
text = indexes.CharField(document=True, use_template=True)
|
text = indexes.CharField(document=True, use_template=True)
|
||||||
address = indexes.CharField(model_attr='address__full_address')
|
address = indexes.CharField(model_attr='get_full_address')
|
||||||
location = indexes.LocationField(model_attr='address__geo_location')
|
location = indexes.LocationField(model_attr='get_location')
|
||||||
|
|
||||||
def get_model(self):
|
def get_model(self):
|
||||||
return Store
|
return Store
|
||||||
|
|||||||
Reference in New Issue
Block a user