- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 95
new signal: post_bulk_update #524
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #524 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 185 185
Lines 15232 15253 +21
=========================================
+ Hits 15232 15253 +21
|
Yes, I agree that if implemented those should be separate signals that accept a list of instances -> that way you can skip the bool flag from method signatures and still have some signals only for "normal" create or update but not for bulk operations. But there is a bigger problem and a reason why this is not present. And since they don't have pks (or at least don't have to have them) there is no reliable way to refresh the models after bulk_create, so the signal in your code receives incomplete data (each instance in db differs from the one you have in bulk operation). |
Got it. So I add the new signal called And maybe need the |
Thanks for your review. Please release when it was merged. I need this signal to develop project. |
Awesome, thanks! |
Uh oh!
There was an error while loading. Please reload this page.