Add fields to device component models for tracking creation/update times #4611

Closed
opened 2025-12-29 18:38:14 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 1, 2021).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.7.9
  • NetBox version: 2.10.5

Proposed Functionality

Add the standard created and last_updated fields to all device component and component template models. These will appear in the REST API serializer as well as within the NetBox UI.

Use Case

Automatically tracks the date on which objects are created, and the date and time at which they have been most recently updated.

Database Changes

Add created and last_updated fields to each device component (console ports, power outlets, interfaces, etc.) model as well as their template models (used for instantiation from a device type).

External Dependencies

None

Originally created by @jeremystretch on GitHub (Mar 1, 2021). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.7.9 * NetBox version: 2.10.5 ### Proposed Functionality Add the standard `created` and `last_updated` fields to all device component and component template models. These will appear in the REST API serializer as well as within the NetBox UI. ### Use Case Automatically tracks the date on which objects are created, and the date and time at which they have been most recently updated. ### Database Changes Add `created` and `last_updated` fields to each device component (console ports, power outlets, interfaces, etc.) model as well as their template models (used for instantiation from a device type). ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 18:38:14 +01:00
adam closed this issue 2025-12-29 18:38:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4611