pre-commit-ci[bot]
e1485104f8
[pre-commit.ci] pre-commit autoupdate ( #564 )
...
updates:
- [github.com/asottile/pyupgrade: v3.10.1 → v3.11.0](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.11.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-21 17:24:15 +02:00
pre-commit-ci[bot]
3dbf6a3727
[pre-commit.ci] pre-commit autoupdate ( #562 )
...
updates:
- [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-21 17:21:15 +02:00
Abdullah Alaqeel
b6e5223bf3
chore: add a check arg to the migration command ( #563 )
...
* chore: add a check arg to the migration command
* chore: add a check arg to the migration command
2025-10-21 17:20:45 +02:00
James Gillard
68fe1cbed9
Confirm Python 3.12 support ( #572 )
...
* Confirm Python 3.12 support
* Remove dj4.2/py3.12 from tox.ini
2025-10-21 17:18:46 +02:00
Abdullah Alaqeel
4a36378f3c
feat: give users the option to run the json migration asyncly ( #495 )
2025-10-21 17:17:38 +02:00
Abdullah Alaqeel
73800bb34c
feat: collect all models including auto created ones and excluding non-managed ones ( #550 )
...
feat: automatically register m2m fields for models when opting to auto register models
2025-10-21 11:47:20 +02:00
pre-commit-ci[bot]
5e8f856e13
[pre-commit.ci] pre-commit autoupdate ( #547 )
...
updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](https://github.com/psf/black/compare/23.3.0...23.7.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-21 11:47:13 +02:00
Hasan Ramezani
78dc7a5012
Fix a bug in serialized_data with F expressions ( #544 )
2025-10-21 11:46:50 +02:00
Fırat Kılıç
188337b465
Fix unnecessary log when adding already existed m2m record ( #535 )
2025-10-21 11:46:44 +02:00
Rustam Astafeev
a5f54d09df
fixed getting field's verbose_name ( #508 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2025-10-21 11:46:04 +02:00
Joey Lange
a893859886
Make M2M changes comply with JSONField properly ( #514 )
2025-10-21 11:30:22 +02:00
Aaron C. de Bruyn
81a6cf2344
Add ability to globally exclude fields by name on all models ( #498 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2025-10-21 11:26:26 +02:00
Abdullah Alaqeel
1cecc8ca80
Always call set_actor ( #484 )
2025-10-21 11:23:35 +02:00
Thomas Steen Rasmussen
fb6c363e2c
raise AuditLogRegistrationError on invalid app in settings ( #492 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2025-10-21 11:13:52 +02:00
Cleiton de Lima
4a56697422
Fix repr of a json field in field changes ( #489 )
2025-10-21 11:11:43 +02:00
Aivars Kalvāns
a41c0f852d
Convert AUDITLOG_EXCLUDE_TRACKING_MODELS to tuple before concatenate ( #488 )
2025-10-21 11:10:49 +02:00
August Raack
2bd6c1a3e8
Modify `change` field to be a json field. ( #407 )
...
* Modify ``change`` field to be a json field.
Storing the object changes as a json is preferred because it allows SQL
queries to access the change values. This work moves the burden of
handling json objects from an implementation of python's json library in
this package and puts it instead onto the ORM. Ultimately, having the
text field store the changes was leaving them less accessible to external
systems and code that is written outside the scope of the django
auditlog.
This change was accomplished by updating the field type on the model and
then removing the JSON dumps invocations on write and JSON loads
invocations on read. Test were updated to assert equality of
dictionaries rather than equality of JSON parsable text.
Separately, it was asserted that postgres will make these changes to
existing data. Therefore, existing postgres installations should update the
type of existing field values without issue.
* Add test coverage for messages exceeding char len
The "Modify change field to be a json field" commit reduced test
coverage on the mixins.py file by 0.03%. The reduction in coverage was
the result of reducing the number of operations required to achieve the
desired state. An additional test was added to increase previously
uncovered code. The net effect is an increase in test case coverage.
* Add line to changelog
Better markdown formatting
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
* Update CHANGELOG text format
More specific language in the improvement section regarding `LogEntry.change`
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
* Update migration to show Django version 4.0
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
* Update CHANGELOG to show breaking change
Running the migration to update the field type of `LogEntry.change` is a breaking change.
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
* Update serial order of migrations
* Adjust manager method for compatibility
The create log method on the LogEntry manager required an additional
kwarg for a call to create an instance regardless of a change or not.
This felt brittle anyway. The reason it had worked prior to these
changes was that the `change` kwarg was sending a string "null" and
not a None when there were no changes.
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2025-10-21 11:04:47 +02:00
Abdullah Alaqeel
b8cdfb0dbb
Adding Custom Pre- and Post- Log Hooks ( #483 )
2025-10-21 10:38:15 +02:00
Aleh Rymašeŭski
0807b8f216
Allow @auditlog.register with no parentheses
2023-10-24 11:55:26 +00:00
Hasan Ramezani
ca3806f296
Drop support for Python 3.7 ( #546 )
2023-09-01 15:53:44 +00:00
Aleh Rymašeŭski
408a105fe1
Allow cascade deletion of auditlog entries ( #556 )
...
* Allow cascade deletion of auditlog entries
* Cache iteration over self.urls
2023-09-01 15:50:51 +00:00
Aleh Rymašeŭski
ab65364bb4
Set history delete_related to False by default ( #557 )
...
This is a breaking change. The default behavior is to delete the
related objects, but it doesn't make sense to apply it to audit log
entries, at least not by default.
2023-09-01 15:50:08 +00:00
Aleh Rymašeŭski
47188b46d7
Stop deleting log entries in log_create
2023-09-01 15:48:59 +00:00
Aleh Rymašeŭski
682e8e270b
Add null=True to LogEntry.cid field
...
It's already set nullable in the migration.
2023-07-19 10:15:27 +00:00
Aleh Rymašeŭski
03920f2874
Merge tox & CI changes from upstream master
2023-07-13 16:48:37 +00:00
pre-commit-ci[bot]
2c1a3e7258
[pre-commit.ci] pre-commit autoupdate ( #541 )
...
updates:
- [github.com/asottile/pyupgrade: v3.7.0 → v3.8.0](https://github.com/asottile/pyupgrade/compare/v3.7.0...v3.8.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:25:56 +00:00
Hasan Ramezani
2630a0ef45
Drop Django 4 support ( #540 )
2023-07-13 16:25:53 +00:00
pre-commit-ci[bot]
816b837e6b
[pre-commit.ci] pre-commit autoupdate ( #534 )
...
updates:
- [github.com/asottile/pyupgrade: v3.4.0 → v3.7.0](https://github.com/asottile/pyupgrade/compare/v3.4.0...v3.7.0 )
- [github.com/adamchainz/django-upgrade: 1.13.0 → 1.14.0](https://github.com/adamchainz/django-upgrade/compare/1.13.0...1.14.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:25:51 +00:00
Hasan Ramezani
9093e611ce
Confirm Django 4.2 support ( #529 )
2023-07-13 16:25:47 +00:00
pre-commit-ci[bot]
2365cee9ce
[pre-commit.ci] pre-commit autoupdate ( #527 )
...
updates:
- [github.com/asottile/pyupgrade: v3.3.2 → v3.4.0](https://github.com/asottile/pyupgrade/compare/v3.3.2...v3.4.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:25:41 +00:00
pre-commit-ci[bot]
87c4583c32
[pre-commit.ci] pre-commit autoupdate ( #523 )
...
updates:
- [github.com/asottile/pyupgrade: v3.3.1 → v3.3.2](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.3.2 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:25:39 +00:00
pre-commit-ci[bot]
7f6d646434
[pre-commit.ci] pre-commit autoupdate ( #521 )
...
updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:25:36 +00:00
Alieh Rymašeŭski
356819676a
Fix GitHub actions deprecations ( #520 )
...
* Upgrade versions of github actions
See https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
* Update syntax of set-output directive
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2023-07-13 16:25:34 +00:00
pre-commit-ci[bot]
a65204a275
[pre-commit.ci] pre-commit autoupdate ( #516 )
...
updates:
- [github.com/adamchainz/django-upgrade: 1.12.0 → 1.13.0](https://github.com/adamchainz/django-upgrade/compare/1.12.0...1.13.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:25:27 +00:00
pre-commit-ci[bot]
8e0870fa58
[pre-commit.ci] pre-commit autoupdate ( #507 )
...
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:25:03 +00:00
pre-commit-ci[bot]
667a990a76
[pre-commit.ci] pre-commit autoupdate ( #504 )
...
updates:
- [github.com/PyCQA/isort: 5.11.4 → 5.12.0](https://github.com/PyCQA/isort/compare/5.11.4...5.12.0 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:23:49 +00:00
Hasan Ramezani
4cde56922e
Run django main tests on Python >= 3.10 ( #499 )
2023-07-13 16:23:40 +00:00
pre-commit-ci[bot]
d73e94c4ab
[pre-commit.ci] pre-commit autoupdate ( #485 )
...
updates:
- [github.com/PyCQA/isort: v5.11.3 → 5.11.4](https://github.com/PyCQA/isort/compare/v5.11.3...5.11.4 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-13 16:23:06 +00:00
Aleh Rymašeŭski
57cd23eaa8
Merge upstream changes prior to JSON migration
...
JSON migration is a breaking change and we are not yet ready for it.
2023-07-13 15:59:52 +00:00
Aleh Rymašeŭski
addaaa7d68
Merge cid from upstream
2023-07-13 15:56:59 +00:00
Aleh Rymašeŭski
117696842b
Merge overwritable timestamp from upstream
2023-07-13 15:53:37 +00:00
Aleh Rymašeŭski
779a751da3
Skip upstream version 2.2.2
...
We are not subject to the regressions this revert addresses.
2023-07-13 15:44:37 +00:00
Aleh Rymašeŭski
c95a0c1405
Merge upstream version 2.2.1
2023-07-13 15:40:32 +00:00
Aleh Rymašeŭski
c422dd1f0d
Merge upstream version 2.2.0
2023-07-13 15:38:15 +00:00
Aleh Rymašeŭski
614f4bc4da
Merge another part of upstream 2.2.0
2023-07-13 15:25:04 +00:00
Aleh Rymašeŭski
29d92e7eba
Merge "serialized_data" feature
2023-07-13 14:58:50 +00:00
Aleh Rymašeŭski
c65a0b23c4
Merge upstream 2.1.1 and partial 2.2.0
2023-07-13 14:42:31 +00:00
Hasan Ramezani
2595a36c71
Prepare release 2.2.2 ( #497 )
2023-01-17 09:07:11 +01:00
Alieh Rymašeŭski
6996e1cfd4
Revert "Disallow changing or deleting log entries" ( #496 )
...
This reverts commit de5638c607 .
2023-01-16 16:04:51 +01:00
Abdullah Alaqeel
bc6d393390
Added support for Correlation ID
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-12-23 15:09:32 +01:00