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

Add current location asset property #159

Merged
merged 5 commits into from
Jul 16, 2024
Merged

Conversation

alehaa
Copy link
Contributor

@alehaa alehaa commented Apr 19, 2024

To quickly access the current location of an asset, a new property and table column is provided. This allows using a single column being used for accessing either the stored or installed location. An equivalent mechanism has been implemented for the location's site.

To quickly access the current location of an asset, a new property and
table column is provided. This allows using a single column being used
for accessing either the stored or installed location. An equivalent
mechanism has been implemented for the location's site.
netbox_inventory/models.py Outdated Show resolved Hide resolved
Both 'current' properties now work in the same way: if an installed site
or location is known, it will be used. Otherwise the fallback storage
property is used. A 'storage_site' property accessor has also been added
for consistency.
@matejv matejv merged commit 3a220ef into ArnesSI:master Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants