mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-27 11:17:27 +02: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')
|
verbose_name=_('Parent')
|
||||||
)
|
)
|
||||||
is_primary = columns.BooleanColumn(
|
is_primary = columns.BooleanColumn(
|
||||||
verbose_name=_('Primary')
|
verbose_name=_('Primary'),
|
||||||
|
orderable=False,
|
||||||
)
|
)
|
||||||
tags = columns.TagColumn(
|
tags = columns.TagColumn(
|
||||||
url_name='dcim:macaddress_list'
|
url_name='dcim:macaddress_list'
|
||||||
|
|||||||
Reference in New Issue
Block a user