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
I'm trying to use the related_models field in my documents to update the index when the related models is updated. However, If I add a model to that field, It always raises object has no attribute 'get_instances_from_related'
I'm not sure what I'm missing. The documentation mentions nothing and the example shows no extra configuration so it is impossible to know what's happening.
Thank you,
The text was updated successfully, but these errors were encountered:
To summarise, get_instances_from_related should be a method of your Document class which expects an instance of one of the models declared in Django.related_models and returns the associated instance(s) of your Django.model.
Another way to explain it is that it is used to know what instance(s) of Django.model should be reindexed when an instance of one of the related models is updated.
Good day,
I'm trying to use the
related_models
field in my documents to update the index when the related models is updated. However, If I add a model to that field, It always raisesobject has no attribute 'get_instances_from_related'
I'm not sure what I'm missing. The documentation mentions nothing and the example shows no extra configuration so it is impossible to know what's happening.
Thank you,
The text was updated successfully, but these errors were encountered: