Commit 8ff89c1365329ae8fffac5fd825b8ca769fc3839
1 parent
9975ff62
Exists in
master
and in
39 other branches
Minor fix on search base indexes - fixes #129
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/search/base_indexes.py
| ... | ... | @@ -77,7 +77,9 @@ class BaseIndex(indexes.SearchIndex): |
| 77 | 77 | |
| 78 | 78 | def prepare_modified_by(self, obj): |
| 79 | 79 | if hasattr(obj, 'modified_by'): |
| 80 | - return obj.modified_by | |
| 80 | + modified_by = obj.get_modified_by() | |
| 81 | + if modified_by: | |
| 82 | + return modified_by.get_full_name() | |
| 81 | 83 | if self.author_obj: |
| 82 | 84 | return self.author_obj.get_full_name() |
| 83 | 85 | return obj.author | ... | ... |