Skip to content

Commit 79411b9

Browse files
committed
fixing docstring
1 parent fd54d69 commit 79411b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/search/mixins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class RTDDocTypeMixin(object):
1515
"""
1616

1717
def _prepare_action(self, object_instance, action, index_name=None):
18+
"""Overwrite to take `index_name` from parameters for setting index dynamically"""
1819
return {
1920
'_op_type': action,
2021
'_index': index_name or str(self._doc_type.index),
@@ -26,6 +27,7 @@ def _prepare_action(self, object_instance, action, index_name=None):
2627
}
2728

2829
def _get_actions(self, object_list, action, index_name=None):
30+
"""Overwrite to take `index_name` from parameters for setting index dynamically"""
2931
if self._doc_type.queryset_pagination is not None:
3032
paginator = Paginator(
3133
object_list, self._doc_type.queryset_pagination

0 commit comments

Comments
 (0)