Skip to content

Commit

Permalink
Merge pull request #116 from nautobot/develop-fix-orderable
Browse files Browse the repository at this point in the history
Disable endpoint ordering in Peering table until fixed
  • Loading branch information
mzbroch authored Aug 10, 2023
2 parents 23adfbe + d6119b0 commit 92fd761
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nautobot_bgp_models/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,15 @@ class PeeringTable(StatusTableMixin, BaseTable):
viewname="plugins:nautobot_bgp_models:peering",
args=[A("pk")],
text=str,
orderable=False,
)

endpoint_a = tables.LinkColumn(
verbose_name="Endpoint", text=lambda x: str(x.endpoint_a.local_ip) if x.endpoint_a else None
verbose_name="Endpoint", text=lambda x: str(x.endpoint_a.local_ip) if x.endpoint_a else None, orderable=False
)

endpoint_z = tables.LinkColumn(
verbose_name="Endpoint", text=lambda x: str(x.endpoint_z.local_ip) if x.endpoint_z else None
verbose_name="Endpoint", text=lambda x: str(x.endpoint_z.local_ip) if x.endpoint_z else None, orderable=False
)
actions = ButtonsColumn(model=models.Peering)

Expand Down

0 comments on commit 92fd761

Please sign in to comment.