Truncate titles to 1000 characters before trying to save them in the DB. Fixes #128

This commit is contained in:
Ryan Sears 2015-10-02 11:24:50 -07:00
parent 41894131d3
commit 1cd8de91fb

View file

@ -103,9 +103,9 @@ class SearchAdapter(object):
You can access the title of the search entry as `entry.title` in your search results.
The default implementation returns `force_text(obj)`.
The default implementation returns `force_text(obj)` truncated to 1000 characters.
"""
return force_text(obj)
return force_text(obj)[:1000]
def get_description(self, obj):
"""