-
Notifications
You must be signed in to change notification settings - Fork 27
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
Allow a parent reference in the identifiers #222
Comments
I guess this assumes this, doesn't it?: class Building(DiffSyncModel):
_identifiers = ("name")
_children = {"floor": "floors"}
name: str
floors: List = [] |
Yes, thanks. Updated. |
I presume you are already referencing this, but in case not: https://github.com/nautobot/nautobot-plugin-ssot/pull/69/files#diff-d5a05dc0fa5ec399d2b02a105d518741cfc140ec6ce19c4694a3e8c1b8f3e9a7R98 |
Actually I am not, thanks! From what you linked I can't quite tell in which section you need this, but I think I get the general idea. |
Environment
Proposed Functionality
The
_identifiers
of a model should allow a reference to the parent's set of_identifiers
.Use Case
Taking a simple building -> floor parent-child hierarchy the 2nd floor only needs to be unique within its own building. Currently I have to do a workaround like this:
when I would much rather want to do something like this
to make my floors unique where
BuildingModel
looks like this:The text was updated successfully, but these errors were encountered: