feat(utilities): Add ranges_to_string_list

Introduce `ranges_to_string_list` for converting numeric ranges into a
list of readable strings. Update the `vid_ranges_list` property and
templates to use this method for better readability and maintainability.
Add related tests to ensure functionality.

Closes #20516
This commit is contained in:
Martin Hauser
2025-10-09 20:35:12 +02:00
committed by Jeremy Stretch
parent c9386bc9c3
commit cfbd9632ac
5 changed files with 67 additions and 17 deletions

View File

@@ -40,7 +40,7 @@
</tr>
<tr>
<th scope="row">{% trans "VLAN IDs" %}</th>
<td>{{ object.vid_ranges_list }}</td>
<td>{{ object.vid_ranges_items|join:", " }}</td>
</tr>
<tr>
<th scope="row">Utilization</th>