- RackElevationOfflineSVGView called .render() unconditionally on the
RackViewSet elevation action's response, but that action returns a
plain HttpResponse (not a DRF Response) when render=svg is
requested, causing AttributeError on every click.
- effective_width_positions() crashed with decimal.InvalidOperation
when a device had no rack position set (e.g. surfaced via NetBox
Topology Views, which includes unracked devices). Such devices now
get the default full-width result instead of entering the Decimal
conversion.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds a "SVG offline" download button on the rack detail page. It
reuses NetBox's own rack-elevation REST endpoint to render the SVG,
then strips embedded <a>/xlink:href links (which point at internal,
relative NetBox URLs and are useless once the file is saved) so the
result renders identically when opened standalone in any SVG viewer.
Gated by the new offline_svg_export_enabled plugin setting (on by
default).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>