Releases: FROWNINGdev/django-orm-lens
Releases · FROWNINGdev/django-orm-lens
Release list
v0.2.0 — Polish release
The polish release. Consolidates hover, filter, welcome, security hardening, and diagram export into a single minor bump.
What is new
Added
- Export ER diagram as SVG — new button in the diagram panel header saves the rendered graph as an SVG file inside your workspace.
- Welcome view — the sidebar shows a helpful explanation and a Refresh action when no Django models are found, instead of a blank panel.
- Smart tree expansion — apps auto-expand on small projects (≤ 40 models) and start collapsed on large monorepos. A filter always expands to reveal matches.
- Multi-line class inheritance support — the parser handles Black-formatted classes where the base list wraps across two or three lines.
Security
- Path scoping on
jumpToModel— rejects any target outside the current workspace folders. Prevents a craftedmodels.pyfrom opening arbitrary local files. - Hover markdown sanitization — parser-derived strings are escaped and the trusted-command scope is narrowed to
djangoOrmLens.jumpToModelonly. Blocks command-URI injection through crafted names.
Install
- Marketplace: https://marketplace.visualstudio.com/items?itemName=frowningdev.django-orm-lens
- CLI:
code --install-extension frowningdev.django-orm-lens - Direct VSIX: attached below.
v0.3.1
What's Changed
- Support edge labels for one-to-one and through relations 🩷 by @kingrubic in #5
New Contributors
- @kingrubic made their first contribution in #5
Full Changelog: v0.2.0...v0.3.1
v0.3.0 — CodeLens, edge labels, theme picker, Python CLI + MCP
Highlights
- CodeLens above every model class — shows field/relation counts and an "Open ER diagram" action inline. Toggle with
djangoOrmLens.showCodeLens. - Edge labels on the ER diagram — relation arrows now surface
on_delete(CASCADE / SET_NULL / PROTECT) andrelated_namewhen present. - Theme picker —
djangoOrmLens.diagramTheme(auto/default/dark/forest/neutral);autofollows your VS Code color theme. - Python CLI + MCP server — companion package
django-orm-lenson PyPI. Zero-dep CLI (scan,describe,hover,list,er) plus an optional MCP stdio server exposing five read-only tools to Cursor, Aider, Continue.dev, Zed, and any MCP client.
Install
code --install-extension frowningdev.django-orm-lens
pip install "django-orm-lens[mcp]"Fixes
- CI publish workflow (was silently failing on YAML quoting). Now has parallel Marketplace + PyPI publish jobs.