Skip to content

Commit

Permalink
Return a callable
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Jun 12, 2019
1 parent e2a2f51 commit ccde7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def elastic_search(request, project_slug=None):
index=request.GET.get('index'),
)
search_facets = collections.defaultdict(
ProjectSearch,
lambda: ProjectSearch,
{
'project': ProjectSearch,
'domain': DomainSearch,
Expand Down

0 comments on commit ccde7c5

Please sign in to comment.