Skip to content

Support edge labels for OneToOneField / M2M through models #2

Description

@FROWNINGdev

v0.3.0 added on_delete and related_name labels on the ER diagram for ForeignKey relations. Extend the same treatment to:

  • OneToOneField (already parsed, just no label rendered)
  • ManyToManyField through= model — surface the intermediate model name in the label

Where to look: src/graphWebview.ts buildMermaid(), and the args extraction in src/parser.ts.

Test fixture: any Django project with a ManyToManyField(through='ThroughModel') relation.

Good first PR — small scope, clear pattern to follow from the existing on_delete code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions