File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/django_elasticsearch_dsl_drf/filter_backends/suggester Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 67
67
>>>
68
68
>>> model = Publisher # The model associate with this Document
69
69
"""
70
- from elasticsearch_dsl .search import AggsProxy
70
+ try : # code for 8.13 (requires 8.13.1)
71
+ # This should not be imported in external projects, as it is a internal tool.
72
+ # See https://github.com/barseghyanartur/django-elasticsearch-dsl-drf/pull/316/files#r1596499499
73
+ from elasticsearch_dsl .search_base import AggsProxy
74
+ except ImportError :
75
+ # backward-compatible (older than 8.13)
76
+ from elasticsearch_dsl .search import AggsProxy
77
+
78
+ from elasticsearch_dsl .search_base import AggsProxy
71
79
72
80
from django_elasticsearch_dsl_drf .constants import (
73
81
FUNCTIONAL_SUGGESTER_TERM_MATCH ,
You can’t perform that action at this time.
0 commit comments