Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Releases: swisscom/cleanerversion

Bugfix release for admin integration

22 Jun 08:25
Compare
Choose a tag to compare

Added necessary files to CleanerVersion package;
Slightly updated the docs;

Added Django 1.8 compatibility and Django Admin-interface integration

11 Jun 06:38
Compare
Choose a tag to compare

This latest minor release is backward compatible and adds the following features:

  • Compatibility with Django 1.8 (LTS); additionally to Django 1.6 and Django 1.7 support has been extended to Django's latest release
  • Integration to Django's Admin interface; It is now possible to manage your versions, display an object's history and to filter objects at a given point in time. Credits go to @boydjohnson and @peterfarrell.
  • Bugfixes

Bugfix: delete only current objects

22 May 13:13
Compare
Choose a tag to compare

This is a bugfix release to ensure that only current objects can be deleted.

Fixed deletion to work in a CleanerVersion-way for Versionables

22 May 09:37
Compare
Choose a tag to compare

Versionable objects now only get "soft-deleted" contrary to native Django model instances that continue to be deleted from DB as usual.

Fix deletion collection

01 May 07:15
Compare
Choose a tag to compare

Do not collect non-current versions for deletion

Adjust restore() parameter handling

23 Apr 19:42
Compare
Choose a tag to compare

When passing ForeignKeys to restore(), follow Django practice for allowing either objects or ids to be passed.

With an object:

employee.restore(team=new_team)

With an id:

employee.restore(team_id=new_team.id)

restorable versions and more

23 Apr 10:02
Compare
Choose a tag to compare

Deletion handling has changed. Previously, VersionedForeignKey on_delete handlers were ignored. Cascade (the default), protect, and other on_delete handlers now take effect for VersionedForeignKeys. See the CleanerVersion docs for the behaviour details.

Versionable.restore() is added to allow restoring previous versions (without relations).

Versionable.detach() is added to allow giving an existing object.

It is possible to specify an id yourself when creating a new Versionable (but beware: all sources that are generating uuids should have sufficient entropy if UUID collisions are to be avoided).

VersionManager.previous_version() and VersionManager.next_version() now default to returning object's whose as_of time is set to one microsecond before the version's end date. This affects when the relations are returned if relations are traversed via the returned object. See CleanerVersion docs for available alternative behaviours.

M2M self-references have been added

25 Mar 16:18
Compare
Choose a tag to compare

It is now possible to auto-reference models through M2M relationships.
No schema adaptions needed.

Bugfix release

18 Feb 21:50
Compare
Choose a tag to compare

Force updating of latest version upon deletion

Historic foreign key pointed versions

03 Feb 11:31
Compare
Choose a tag to compare

New features in this release:

  • Possibility to create relationships with non-versioned models

Bugfixes:

  • Foreign key relationships now work as intended (returning historic versions), reported in #45