mirror of
https://github.com/Hopiu/django-watson.git
synced 2026-04-28 00:44:44 +00:00
Truncate titles to 1000 characters before trying to save them in the DB. Fixes #128
This commit is contained in:
parent
41894131d3
commit
1cd8de91fb
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue