Skip to content

Releases: jazzband/django-simple-history

Release 2.11.0

20 Jun 15:48
5ac5aca
Compare
Choose a tag to compare
  • Added clean_old_history management command (gh-675)
  • Added user_db_constraint param to history to avoid circular reference on delete (gh-676)
  • Leverages get_user from HistoricalRecords in order to set a fallback user on
    bulk update and bulk create (gh-677)

Release 2.10.0

27 Apr 14:36
d19b52f
Compare
Choose a tag to compare
  • Added bulk_update_with_history utility function (gh-650)
  • Add default user and default change reason to bulk_create_with_history and bulk_update_with_history (gh-653)
  • Add french translation (gh-654)
  • Start using _change_reason instead of changeReason to add change reasons to historical
    objects. changeReason is deprecated and will be removed in version 3.0.0 (gh-655)

Release 2.9.0

23 Apr 18:13
f47eb3f
Compare
Choose a tag to compare
  • Add simple filtering if provided a minutes argument in clean_duplicate_history (gh-606)
  • Add setting to convert FileField to CharField instead of TextField (gh-625)
  • Added notes on BitBucket Pipelines (gh-627)
  • import model ContentType in SimpleHistoryAdmin using django_apps.get_model
    to avoid possible AppRegistryNotReady exception (gh-630)
  • Fix utils.update_change_reason when user specifies excluded_fields (gh-637)
  • Changed how now is imported from timezone (timezone module is imported now) (gh-643)
  • settings.SIMPLE_HISTORY_REVERT_DISABLED if True removes the Revert
    button from the history form for all historical models (gh-632))

Release 2.8.0

02 Dec 16:10
ec0dca3
Compare
Choose a tag to compare
  • Fixed bulk_create_with_history support for HistoryRecords with relation_name attribute (gh-591)
  • Added support for bulk_create_with_history for databases different from PostgreSQL (gh-577)
  • Fixed DoesNotExist error when trying to get instance if object is deleted (gh-571)
  • Fix model_to_dict to detect changes in a parent model when using
    inherit=True (backwards-incompatible for users who were directly
    using previous version) (gh-576)
  • Use an iterator for clean_duplicate_history (gh-604)
  • Add support for Python 3.8 and Django 3.0 (gh-610)

Release 2.7.3

16 Jul 15:24
1e1b7ab
Compare
Choose a tag to compare
  • Fixed BigAutoField not mirrored as BigInt (gh-556)
  • Fixed most_recent() bug with excluded_fields (gh-561)
  • Added official Django 2.2 support (gh-555)

Release 2.7.2

17 Apr 14:35
af20c82
Compare
Choose a tag to compare
  • Fixed ModuleNotFound issue for six (gh-553)

Release 2.7.1

16 Apr 16:55
Compare
Choose a tag to compare
  • Added the possibility to create a relation to the original model (gh-536)
  • Fix router backward-compatibility issue with 2.7.0 (gh-539, gh-547)
  • Fix hardcoded history manager (gh-542)
  • Replace deprecated django.utils.six with six (gh-526)
  • Allow custom_model_name parameter to be a callable (gh-489)

Release 2.7.0

16 Jan 16:53
7afa08a
Compare
Choose a tag to compare
  • * Add support for using chained manager method and save/delete keyword argument (gh-507)
  • Added management command clean_duplicate_history to remove duplicate history entries (gh-483)
  • Updated most_recent to work with excluded_fields (gh-477)
  • Fixed bug that prevented self-referential foreign key from using 'self' (gh-513)
  • Added ability to track custom user with explicit custom history_user_id_field (gh-511)
  • Don't resolve relationships for history objects (gh-479)
  • Reorganization of docs (gh-510)

* NOTE: This change was not backward compatible for users using routers to write
history tables to a separate database from their base tables. This issue is fixed in
2.7.1.

Release 2.6.0

12 Dec 16:30
cbb0ab4
Compare
Choose a tag to compare
  • Add app parameter to the constructor of HistoricalRecords (gh-486)
  • Add custom_model_name parameter to the constructor of HistoricalRecords (gh-451)
  • Fix header on history pages when custom site_header is used (gh-448)
  • Modify pre_create_historircal_record to pass history_instance for ease of customization (gh-421)
  • Raise warning if HistoricalRecords(inherit=False) is in an abstract model (gh-341)
  • Ensure custom arguments for fields are included in historical models' fields (gh-431)
  • Add german translations (gh-484)
  • Add extra_context parameter to history_form_view (gh-467)
  • Fixed bug that prevented next_record and prev_record to work with custom manager names (gh-501)

Release 2.5.1

22 Oct 18:53
ead287a
Compare
Choose a tag to compare
  • Add '+' as the history_type for each instance in bulk_history_create (gh-449)
  • Add support for history_change_reason for each instance in bulk_history_create (gh-449)
  • Add history_change_reason in the history list view under the Change reason display name (gh-458)
  • Fix bug that caused failures when using a custom user model (gh-459)