mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
Fix post_save for bulk_update()
This commit is contained in:
parent
ab8efd6e5f
commit
a26dab4fb1
@ -1025,7 +1025,7 @@ class Module(PrimaryModel, ConfigContextModel):
|
||||
update_fields = ['module']
|
||||
component_model.objects.bulk_update(update_instances, update_fields)
|
||||
# Emit the post_save signal for each updated object
|
||||
for component in create_instances:
|
||||
for component in update_instances:
|
||||
post_save.send(
|
||||
sender=component_model,
|
||||
instance=component,
|
||||
|
Loading…
Reference in New Issue
Block a user