-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add m2m_changed signal #26
Comments
Hey @EricOuma please assign this to me. Thanks |
@KengoWada There is some problem with the implementation of this. Here is how to reproduce:
This will eventually try calling Your fix might look like this:
|
@KengoWada It's a bit urgent so let me know if you are able to work on it today |
@EricOuma let me work on it now. |
@KengoWada Did you try testing with the sample model I gave?
|
Hey @EricOuma I only run the existing tests. I have seen the issue. Let me work on a fix. |
Problem Statement
Take the following models:
When a new song is created and then an artist is added, it does not save the artist's name to TypeSense and when querying it returns an empty list.
In this case, only the
post_save_typesense_models
is hit after the creation of the song which has an empty list of artists and after the artist is added(or removed) to the song it doesn't reflect in TypeSense.Solution
m2m_changed
signalpost_add
,post_remove
andpost_clear
actionsThe text was updated successfully, but these errors were encountered: