Skip to content

v0.22.4 - ER view and hover cards show fields from abstract base models

Choose a tag to compare

@github-actions github-actions released this 24 Nov 09:03
bb30e20

ER view and hover cards show fields from abstract base models.

Fixed

  • ER diagrams, scan and hover cards show fields from abstract bases
    (#354).
    They used to draw only what a class body declares, so on django-oscar 87
    of 98 models showed 0 fields, and the ER diagram had 4 relations instead
    of 117. Wagtail went from 52 to 138. Every output that describes the table
    (scan -f table|markdown, er in all five formats, the extension's ER
    view and hover) now includes the columns and relations an abstract base
    contributes. The JSON fields list and the sidebar tree still list only
    declared fields. Mermaid labels also drop as _ for related_name="+",
    which turns the reverse accessor off, and the scan -f table file column
    is relative to the working directory instead of an absolute path.