Skip to content

v0.22.3 - Parser keeps more models: call bases, TimeStampedModel fields

Choose a tag to compare

@github-actions github-actions released this 23 Nov 12:23
· 7 commits to main since this release
8b06646

Parser keeps more models: call bases, TimeStampedModel fields.

Fixed

  • parser: TimeStampedModel subclasses keep created and modified
    (#336).
    django-extensions and django-model-utils both define an abstract
    TimeStampedModel with these two fields, but it lives in site-packages, so
    every subclass lost them and drift reported both as "migrated but no
    longer declared". They now come from the same table as the
    django.contrib.auth bases; a workspace class of that name still wins.

  • parser: keep a model whose base list holds a call
    (#335).
    class Comment(ExportModelOperationsMixin("comment"), models.Model) was
    dropped because the class-header regex only reads bases up to the first
    ). Calls in the base list are now stripped before matching, so the other
    bases still decide whether the class is a model; a call as the only base
    is still not a model. Python and TypeScript parsers.