Merge pull request #129 from Fitblip/master

Truncate titles to 1000 characters before trying to save them in the DB
This commit is contained in:
Dave Hall 2015-10-05 10:45:29 +01:00
commit 0ce2e4e755

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):
"""