Skip to content

Commit

Permalink
Use _base_manager so that draft isn't filtered in admin menu (django-…
Browse files Browse the repository at this point in the history
…cms#43)

Co-authored-by: Adam Murray <[email protected]>
  • Loading branch information
adam-murray and Adam Murray authored Jul 29, 2020
1 parent bde6a55 commit 1ea6f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_url_manager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def get_page_search_results(model, queryset, search_term):
:param search_term: Term to be searched for
:return: results
"""
page_content_queryset = PageContent.objects.filter(title__icontains=search_term)
page_content_queryset = PageContent._base_manager.filter(title__icontains=search_term)
content_type_id = ContentType.objects.get_for_model(model).id

for page_content in page_content_queryset:
Expand Down

0 comments on commit 1ea6f5d

Please sign in to comment.