mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
search: make sure we don't have indexes that are too long
This commit is contained in:
parent
a38ab57ddf
commit
12493cffca
@ -47,7 +47,7 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable):
|
|||||||
return "last_update"
|
return "last_update"
|
||||||
|
|
||||||
def prepare_auto(self, obj):
|
def prepare_auto(self, obj):
|
||||||
return self.prepared_data["auto"].strip()
|
return self.prepared_data["auto"].strip()[:245]
|
||||||
|
|
||||||
|
|
||||||
class IndexSignalProcessor(signals.BaseSignalProcessor):
|
class IndexSignalProcessor(signals.BaseSignalProcessor):
|
||||||
|
Loading…
Reference in New Issue
Block a user