mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
8984 add to detail view and search index
This commit is contained in:
parent
783b16ae5d
commit
47ebb51281
@ -31,6 +31,10 @@
|
||||
<th scope="row">{% trans "Description" %}</th>
|
||||
<td>{{ object.description|placeholder }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{% trans "Serial Number" %}</th>
|
||||
<td>{{ object.serial_number|placeholder }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">{% trans "Tenant" %}</th>
|
||||
<td>
|
||||
|
@ -40,10 +40,11 @@ class VirtualMachineIndex(SearchIndex):
|
||||
model = models.VirtualMachine
|
||||
fields = (
|
||||
('name', 100),
|
||||
('serial_number', 300),
|
||||
('description', 500),
|
||||
('comments', 5000),
|
||||
)
|
||||
display_attrs = ('site', 'cluster', 'device', 'tenant', 'platform', 'status', 'role', 'description')
|
||||
display_attrs = ('site', 'cluster', 'device', 'tenant', 'platform', 'status', 'serial_number', 'role', 'description')
|
||||
|
||||
|
||||
@register_search
|
||||
|
Loading…
Reference in New Issue
Block a user