Skip to content

Commit ccde7c5

Browse files
committed
Return a callable
1 parent e2a2f51 commit ccde7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def elastic_search(request, project_slug=None):
6060
index=request.GET.get('index'),
6161
)
6262
search_facets = collections.defaultdict(
63-
ProjectSearch,
63+
lambda: ProjectSearch,
6464
{
6565
'project': ProjectSearch,
6666
'domain': DomainSearch,

0 commit comments

Comments
 (0)