Commit a0df5ab1a72f61c42775e5e97e72aa3b79c1dd59
1 parent
32e09cde
Exists in
master
and in
39 other branches
Removing unnecessary prepares
Showing
1 changed file
with
0 additions
and
6 deletions
Show diff stats
src/proxy/search_indexes.py
| ... | ... | @@ -92,9 +92,6 @@ class WikiIndex(BaseIndex, indexes.Indexable): |
| 92 | 92 | def prepare_description(self, obj): |
| 93 | 93 | return u'{}\n{}'.format(obj.wiki_text, obj.collaborators) |
| 94 | 94 | |
| 95 | - def prepare_modified_by(self, obj): | |
| 96 | - return obj.modified_by | |
| 97 | - | |
| 98 | 95 | def prepare_modified_by_url(self, obj): |
| 99 | 96 | modified_by = obj.get_modified_by() |
| 100 | 97 | if modified_by: |
| ... | ... | @@ -132,9 +129,6 @@ class TicketIndex(BaseIndex, indexes.Indexable): |
| 132 | 129 | obj.reporter, obj.keywords, obj.collaborators |
| 133 | 130 | ) |
| 134 | 131 | |
| 135 | - def prepare_modified_by(self, obj): | |
| 136 | - return obj.modified_by | |
| 137 | - | |
| 138 | 132 | def prepare_modified_by_url(self, obj): |
| 139 | 133 | modified_by = obj.get_modified_by() |
| 140 | 134 | if modified_by: | ... | ... |