8000 docs: add documentation for search by filipweidemann · Pull Request #7972 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

docs: add documentation for search #7972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: remove djangocms-versioning filter
Co-authored-by: Fabian Braun <fsbraun@gmx.de>
  • Loading branch information
filipweidemann and fsbraun authored Jul 29, 2024
commit 65cae32b20b8fbb20656710df8ee4c3b8343a353
5 changes: 1 addition & 4 deletions docs/explanation/searchdocs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ A very simple index could look something like this:
return PageContent

def index_queryset(self, using=None) -> models.QuerySet:
return self.get_model().objects.filter(
versions__state="published",
language=using
).distinct()
return self.get_model().objects.filter(language=using)

def prepare(self, instance: PageContent) -> dict:
self.prepared_data = super().prepare(instance)
Expand Down
Loading
0