Drop contact_* fields from dcim.Site #5612

Closed
opened 2025-12-29 19:30:09 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Nov 4, 2021).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Remove the following fields from the dcim.Site model:

  • contact_name
  • contact_phone
  • contact_email

Justification

NetBox v3.1 introduced a new Contact model (see #1344), which supports the more efficient assignment of contacts to sites and other objects, obviating the need for these fields on the model.

Originally created by @jeremystretch on GitHub (Nov 4, 2021). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Remove the following fields from the dcim.Site model: * `contact_name` * `contact_phone` * `contact_email` ### Justification NetBox v3.1 introduced a new Contact model (see #1344), which supports the more efficient assignment of contacts to sites and other objects, obviating the need for these fields on the model.
adam added the status: acceptedtype: deprecation labels 2025-12-29 19:30:09 +01:00
adam closed this issue 2025-12-29 19:30:09 +01:00
Author
Owner

@cs-1 commented on GitHub (Nov 5, 2021):

Will the upgrade script migrate existing contacts from sites to the new Contact model?

@cs-1 commented on GitHub (Nov 5, 2021): Will the upgrade script migrate existing contacts from sites to the new Contact model?
Author
Owner

@jeremystretch commented on GitHub (Nov 5, 2021):

I wasn't comfortable including an automatic migration for existing contact data, given the largely free-form nature of the fields. However, we could publish a script to take care of this for users. It would allow users to perform a "dry-run" before committing the new objects.

@jeremystretch commented on GitHub (Nov 5, 2021): I wasn't comfortable including an automatic migration for existing contact data, given the largely free-form nature of the fields. However, we could publish a script to take care of this for users. It would allow users to perform a "dry-run" before committing the new objects.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5612