#20875 fix updating of denormalized fields (_site, _location, _rack) for component models #752

Closed
opened 2026-04-05 17:27:11 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @arthanson on 12/10/2025

Fixes: #20875

Several cases were previously missed:

  • netbox/dcim/models/devices.py - when components are instantiated from the device-template and the denormalized fields were never getting updated.
  • netbox/dcim/models/modules.py - when creating a module and instantiating components
  • netbox/dcim/signals.py - when changing the site for a location, when changing the site for a rack

Also checked the API and it looks like the API and this should also affect those. Bulk updates on the API do serializer.save() on each object which will cause the signal handler to run.

*Originally created by @arthanson on 12/10/2025* ### Fixes: #20875 Several cases were previously missed: * netbox/dcim/models/devices.py - when components are instantiated from the device-template and the denormalized fields were never getting updated. * netbox/dcim/models/modules.py - when creating a module and instantiating components * netbox/dcim/signals.py - when changing the site for a location, when changing the site for a rack Also checked the API and it looks like the API and this should also affect those. Bulk updates on the API do serializer.save() on each object which will cause the signal handler to run.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#752