mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-13 13:56:25 +01:00
Fixes #21651: Disable ordering on MACAddress is_primary column
is_primary is a cached_property, not a database field, so attempting to order by it raises a FieldError.
This commit is contained in:
committed by
Jeremy Stretch
parent
ae0907fb37
commit
10157394ae
@@ -1205,7 +1205,8 @@ class MACAddressTable(PrimaryModelTable):
|
||||
verbose_name=_('Parent')
|
||||
)
|
||||
is_primary = columns.BooleanColumn(
|
||||
verbose_name=_('Primary')
|
||||
verbose_name=_('Primary'),
|
||||
orderable=False,
|
||||
)
|
||||
tags = columns.TagColumn(
|
||||
url_name='dcim:macaddress_list'
|
||||
|
||||
Reference in New Issue
Block a user