jazzband / django-simple-history

Store model history and view/revert changes from admin site.
https://django-simple-history.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.11k stars 464 forks source link

m2m historical records are saved even when SIMPLE_HISTORY_ENABLED = False #1328

Closed MattFanto closed 2 weeks ago

MattFanto commented 2 weeks ago

Describe the bug m2m relationships ignores the SIMPLE_HISTORY_ENABLED = False, even when disabled the library is still saving the historical record. This is causing me some issue when loading Django fixture using loaddata

To Reproduce Steps to reproduce the behavior:

  1. set SIMPLE_HISTORY_ENABLED = False
  2. save a m2m relationship
  3. you will see the record in the historical DB

Expected behavior If SIMPLE_HISTORY_ENABLED = False no historical record should be created for m2m relationship

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):