mirror of
https://github.com/Hopiu/django-watson.git
synced 2026-03-16 22:00:22 +00:00
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:
commit
0ce2e4e755
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