Skip to content

Prevent auto index on save #189

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

Closed
MiltosD opened this issue Jul 19, 2019 · 3 comments
Closed

Prevent auto index on save #189

MiltosD opened this issue Jul 19, 2019 · 3 comments

Comments

@MiltosD
Copy link

MiltosD commented Jul 19, 2019

Ok, this is maybe more a question, than an issue.
I have a model X for which I have created a respective DocType. This model has a field status. The get_queryset() method of the DocType is overridden so that only X instances with status "public" should be indexed. When an X instance is created the status field gets the value "private". However, the instance is automatically indexed.

So, how can I prevent auto indexing upon creation, or even better, indexing upon a condition?

Thank you

@safwanrahman
Copy link
Collaborator

This is a good feature that need to be implemented. We have done similar kind of things in Read The Docs.

@SanderTuit
Copy link

I think this is a duplicate for #111.

@safwanrahman
Copy link
Collaborator

Yeah. Seems like I opened #111
closing in favor of #111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants