Forkit-django

Latest version: v0.10.1

Safety actively analyzes 629811 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.9.2

- Pre and Post Signals. Signals have been implemented for customizing the
behavior of a `fork`, `reset`, `diff`, and `commit` outside of the normal
use of the API. The sender of the each signal is the model class of the
model instance being manipulated.

- The `fork`, `reset`, and `diff` pre- signals pass the `reference`,
`instance`, and `config` to the receiver. The `config` is a `dict` which
can be updated in-place for greater flexibility.

0.9.1

- API Refactor. Public methods including `fork`, `reset`, `diff`, and
`commit` have been defined as standalone functions. This refactor
emphasizes greater coverage of applicability for all existing models
rather than only those that inherit from `ForkableModel`. `ForkableModel`
still contains the public methods for backwards compatibility and
convenience.

- Reset Method. Added `reset` method which requires a model instance
`target` that enables "resetting" an existing object rather than creating
a new object per `fork`.

0.9.0

- Forking. Implemented an abstract model class `ForkableModel` which
supports shallow and deep forking model instances.

- Deferred Commits. All relationships are deferred from being saved until
the whole hierarchy has been traversed during forking. Forks are not
committed by default to ensure integrity errors are not forced.

- Diffs. `ForkableModel` also implements a `diff` method for instances
that can be used to compare data values against another object of the same
type.

- Limitations. `through` models for many-to-many fields are not yet
supported. Deep diffs are not yet supported.

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.