Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #164 (partially) - Add region field to site #257

Closed
wants to merge 1 commit into from
Closed

Fixes #164 (partially) - Add region field to site #257

wants to merge 1 commit into from

Conversation

rdujardin
Copy link

Hello. I added a charfield "region" in model Site. It allows to distinguish, for instance, sites in different cities. That was asked in issue #164 .

@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Jul 11, 2016
@jeremystretch
Copy link
Member

It's a good start, but there's a lot more work needed to implement a new model. We need views for creating, editing, and deleting objects, as well as API serializers and endpoints.

@jeremystretch jeremystretch added pr/hold and removed status: accepted This issue has been accepted for implementation labels Jul 13, 2016
@rdujardin
Copy link
Author

Sorry I didn't understand, do you mean region should be a new model and not only a field ?

@jeremystretch
Copy link
Member

Yes, we would need to define a Region model (similar to the Site model) as well as the views, forms, and API mechanisms for it.

@rdujardin
Copy link
Author

Okay, I'm doing that. Should site-to-region linking be mandatory ?

@jeremystretch
Copy link
Member

No, any new relationships being added to the NetBox data model must be optional.

@jeremystretch
Copy link
Member

Closing due to inactivity

@lock lock bot locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants