Skip to content

Commit

Permalink
feat: add Tree relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
Gen-QR committed Jan 3, 2024
1 parent 12027c3 commit 29eb67d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions django_diagram/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ class App:
FirstToSecondCardinality.EXACTLY_ONE,
SecondToFirstCardinality.EXACTLY_ONE,
),
"TreeForeignKey": (
FirstToSecondCardinality.ONE_OR_MORE,
SecondToFirstCardinality.EXACTLY_ONE,
),
"TreeManyToManyField": (
FirstToSecondCardinality.ONE_OR_MORE,
SecondToFirstCardinality.ONE_OR_MORE,
),
"TreeOneToOneField": (
FirstToSecondCardinality.EXACTLY_ONE,
SecondToFirstCardinality.EXACTLY_ONE,
),
}

DEFAULT_TITLE = "Django ER Diagram"
Expand Down

0 comments on commit 29eb67d

Please sign in to comment.