Skip to content

Commit 16c51f0

Browse files
committed
Update tuple to list
1 parent e96fcc0 commit 16c51f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

netbox_bgp/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_action_color(self):
7171
return ActionChoices.colors.get(self.action)
7272

7373
class Meta:
74-
ordering = ('aspath_list', 'index')
74+
ordering = ['aspath_list', 'index']
7575

7676

7777
class RoutingPolicy(NetBoxModel):
@@ -334,7 +334,6 @@ class PrefixListRule(NetBoxModel):
334334
)
335335

336336
class Meta:
337-
ordering = ('prefix_list', 'index')
338337
unique_together = ('prefix_list', 'index')
339338
ordering = ['prefix_list','index']
340339

@@ -548,7 +547,7 @@ class RoutingPolicyRule(NetBoxModel):
548547
)
549548

550549
class Meta:
551-
ordering = ('routing_policy', 'index')
550+
ordering = ['routing_policy', 'index']
552551
unique_together = ('routing_policy', 'index')
553552
ordering = ['routing_policy', 'index']
554553

0 commit comments

Comments
 (0)