Skip to content

Commit 54f51fb

Browse files
committed
Mark intentional exports from indexes
This avoids a wildcard import pulling in things we don't intend to expose
1 parent 39c2adc commit 54f51fb

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

haystack/indexes.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,25 @@
1111
from django.utils.six import with_metaclass
1212

1313
from haystack import connection_router, connections
14-
from haystack.constants import DEFAULT_ALIAS, DJANGO_CT, DJANGO_ID, ID, Indexable
15-
from haystack.fields import *
14+
from haystack.constants import Indexable # NOQA — exposed as a public export
15+
from haystack.constants import DEFAULT_ALIAS, DJANGO_CT, DJANGO_ID, ID
16+
from haystack.fields import ( # NOQA — exposed as a public export
17+
BooleanField,
18+
CharField,
19+
DateField,
20+
DateTimeField,
21+
DecimalField,
22+
EdgeNgramField,
23+
FacetCharField,
24+
FacetDateTimeField,
25+
FacetIntegerField,
26+
FloatField,
27+
IntegerField,
28+
LocationField,
29+
MultiValueField,
30+
SearchField,
31+
SearchFieldError,
32+
)
1633
from haystack.manager import SearchIndexManager
1734
from haystack.utils import get_facet_field_name, get_identifier, get_model_ct
1835

0 commit comments

Comments
 (0)