Metadata-Version: 2.4
Name: django-simple-history-relation
Version: 3.13.1
Summary: Fork of django-simple-history with forward/reverse ManyToMany compatibility, bulk/QuerySet history tracking, change-aware suppression, and sequential versioning.
Author: Edgar
Author-email: Corey Bertram <corey@qr7.com>
Maintainer: Edgar, Trey Hunner
License: BSD-3-Clause
Project-URL: Homepage, https://pypi.org/project/django-simple-history-relation/
Project-URL: Documentation, https://django-simple-history.readthedocs.io/en/stable/
Project-URL: Repository, https://github.com/ramos208/django-simple-history-relation
Project-URL: Source, https://github.com/ramos208/django-simple-history-relation
Project-URL: Bug Tracker, https://github.com/ramos208/django-simple-history-relation/issues
Project-URL: Changelog, https://github.com/ramos208/django-simple-history-relation/blob/master/CHANGES.rst
Keywords: django,history,audit,m2m,manytomany,simple-history,versioning
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.0
Classifier: Framework :: Django :: 5.1
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
License-File: AUTHORS.rst
Requires-Dist: django>=4.2
Dynamic: license-file

django-simple-history-relation (Fork of django-simple-history) |pypi-version|
=============================================================================

.. Start of PyPI readme

|build-status| |docs| |coverage| |maintainability| |code-style| |downloads|

.. |pypi-version| image:: https://img.shields.io/pypi/v/django-simple-history.svg
   :target: https://pypi.org/project/django-simple-history/
   :alt: PyPI Version

.. |build-status| image:: https://github.com/django-commons/django-simple-history/actions/workflows/test.yml/badge.svg
   :target: https://github.com/django-commons/django-simple-history/actions/workflows/test.yml
   :alt: Build Status

.. |docs| image:: https://readthedocs.org/projects/django-simple-history/badge/?version=latest
   :target: https://django-simple-history.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. |coverage| image:: https://img.shields.io/codecov/c/github/django-commons/django-simple-history/master.svg
   :target: https://app.codecov.io/github/django-commons/django-simple-history?branch=master
   :alt: Test Coverage

.. |maintainability| image:: https://api.codeclimate.com/v1/badges/66cfd94e2db991f2d28a/maintainability
   :target: https://codeclimate.com/github/django-commons/django-simple-history/maintainability
   :alt: Maintainability

.. |code-style| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
   :alt: Code Style

.. |downloads| image:: https://static.pepy.tech/badge/django-simple-history
   :target: https://pepy.tech/project/django-simple-history
   :alt: Downloads


.. note::

   **Fork Notice:** ``django-simple-history-relation`` (`ramos208/django-simple-history-relation <https://github.com/ramos208/django-simple-history-relation>`_)
   is a maintained fork of `django-simple-history <https://github.com/django-commons/django-simple-history>`_
   (derived from upstream release ``3.13.0``). It preserves full backwards compatibility
   with the ``simple_history`` import path and standard ``HistoricalRecords`` API while
   adding relationship-aware and bulk-safe history extensions.

``django-simple-history`` stores Django model state on every create/update/delete.

What This Fork Adds
-------------------

In addition to upstream ``django-simple-history`` ``3.13.0``, this fork provides:

- **Forward & Reverse ManyToMany Compatibility:** Automatic or explicit M2M tracking,
  reverse manager snapshot attribution on the owning model, coalesced single-snapshot
  ``set()`` operations, pre-clear owner capture, custom ``through`` model tracking,
  deterministic owner row locking, and legacy relationship baseline markers
  (``RelatedHistoricalRecords``).
- **Change-Aware No-Op Suppression:** Skip redundant historical snapshots when no
  tracked scalar, FK, or M2M fields changed, plus explicit forced snapshots
  (``ChangeAwareHistoricalRecords``, ``create_forced_history``).
- **Bulk & QuerySet History Utilities:** Atomic ``QuerySet.update()`` history capture
  (``history_update``), direct through-table reconciliation (``sync_m2m_history``),
  and enhanced ``bulk_create_with_history`` / ``bulk_update_with_history`` with actor,
  reason, and M2M support.
- **Sequential Versioning & Safe Comparisons:** Optional per-object permanent
  ``history_version`` numbering (``VersionedHistoricalRecords``), grouped major/minor
  revisions, redacted field comparisons (``comparison_changes``, ``bulk_history_deltas``),
  and ``RelatedHistoryAdmin`` with atomic form + M2M batching and version comparison UI.

See ``docs/m2m_and_bulk_history.rst`` for full usage documentation and explicit
bulk/SQL limitations.

This app supports the following combinations of Django and Python:

==========  ========================
  Django      Python
==========  ========================
5.2         3.10, 3.11, 3.12, 3.13, 3.14
6.0         3.12, 3.13, 3.14
6.1         3.12, 3.13, 3.14
main        3.12, 3.13, 3.14
==========  ========================

Getting Help
------------

Documentation is available at https://django-simple-history.readthedocs.io/en/stable/

Pull requests are welcome. Read the `CONTRIBUTING`_ file for tips on
submitting a pull request.

.. _CONTRIBUTING: https://github.com/django-commons/django-simple-history/blob/master/CONTRIBUTING.rst

License
-------

This project is licensed under the
`BSD 3-Clause license <https://choosealicense.com/licenses/bsd-3-clause/>`_.
