Add created/updated times to DeviceType model #1761

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

Originally created by @jeremystretch on GitHub (May 30, 2018).

Issue type

[x] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.3.3

Description

Unlike all other primary data models in NetBox, the DeviceType model does not record the time at which it is created and/or updated. It should inherit from the abstract model utils.CreatedUpdatedModel to include these fields.

Because these fields cannot be null, they will be populated with the current date and time at the moment the migration is applied. (These can later be adjusted manually for each object via the NetBox command line if the user chooses to do so.)

Originally created by @jeremystretch on GitHub (May 30, 2018). ### Issue type [x] Feature request <!-- An enhancement of existing functionality --> [ ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.3.3 ### Description Unlike all other primary data models in NetBox, the DeviceType model does not record the time at which it is created and/or updated. It should inherit from the abstract model `utils.CreatedUpdatedModel` to include these fields. Because these fields cannot be null, they will be populated with the current date and time at the moment the migration is applied. (These can later be adjusted manually for each object via the NetBox command line if the user chooses to do so.)
adam added the status: acceptedtype: feature labels 2025-12-29 17:18:53 +01:00
adam closed this issue 2025-12-29 17:18:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1761