Repository navigation
v0.22.0 - Generated factories fill choices= fields with real values
Generated factories fill choices= fields with real values.
Added
- Generate factory_boy factory:
choices=fields get a realfactory.Iterator.Kind.choicesbecomesKind.values(with a# TODO: import Kindcomment), a named list such asSTATUS_CHOICESbecomes[value for value, _label in STATUS_CHOICES](with a# TODO: import ...comment), and an inline list of pairs uses the first element of each pair. Calls and grouped choices still get the[...] # TODOplaceholder (#228).
Fixed
- drift:
objects = models.Manager()is no longer a model field. Both parsers treated anymodels.<Name>(...)assignment as a field, so an explicit default manager showed up inscan,describe, ER diagrams, and, worst of all, blocking drift.ManagerandQuerySetare skipped in bothcli/orm_lens/parser.pyandsrc/parser.ts, with the whole call skipped so multi-line declarations do not leak their arguments.TaggableManagerstays a relation. The saleor golden snapshot drops theobjectsfield that itsCategorymodel declares.