Closed
Description
Deployment Type
NetBox Cloud
NetBox Version
v3.7.4
Python Version
3.11
Steps to Reproduce
- Create a new device and note its database ID
- In the NetBox shell, inspect all search entries associated with it:
ct = ContentType.objects.get_for_model(Device)
device_id = 107
entries = CachedValue.objects.filter(object_type=ct, object_id=device_id)
for entry in entries:
print(f'{entry.field}: {entry.value}')
Expected Behavior
Only fields which have a meaningful value set should have search entries created.
Observed Behavior
After creating a device with a description, I see three entries for it:
asset_tag: None
name: device1
description: asdasdasd
The value of asset_tag
is null.