You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Ok, this is maybe more a question, than an issue.
I have a model
X
for which I have created a respectiveDocType
. This model has a fieldstatus
. Theget_queryset()
method of theDocType
is overridden so that onlyX
instances with status"public"
should be indexed. When anX
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
The text was updated successfully, but these errors were encountered: