Repository navigation
v0.22.3 - Parser keeps more models: call bases, TimeStampedModel fields
Parser keeps more models: call bases, TimeStampedModel fields.
Fixed
-
parser:
TimeStampedModelsubclasses keepcreatedandmodified
(#336).
django-extensions and django-model-utils both define an abstract
TimeStampedModelwith these two fields, but it lives in site-packages, so
every subclass lost them anddriftreported both as "migrated but no
longer declared". They now come from the same table as the
django.contrib.authbases; 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.