feat: switch port PDF covers the whole switch stack

Front panels and port lists are drawn per stack member with shared VLAN colours.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-04 09:12:22 +01:00
1 parent 567daf7963
commit ce174c6541
5 files changed
+41 -19

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ def stack_members(device):
stack = SwitchStack.objects.filter(device=device).first()
if stack is None:
return []
members = stack.members.exclude(pk=device.pk).select_related("role")
members = stack.members.exclude(pk=device.pk).select_related("role", "site", "rack", "device_type")
return sorted(members, key=lambda member: natural_key(member.name or str(member)))