Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
370 commits
Select commit Hold shift + click to select a range
d848c53
Prepare release of django-auditlog 2.0.0
hramezani May 4, 2022
ea180c0
Remove development note from README.md
hramezani May 9, 2022
6f82d07
Change versionadded in masking fields documentation.
hramezani May 9, 2022
a93f539
Skip stringify if json (#355)
barrachri May 10, 2022
cdd9f40
Disable `add` button in admin ui
theskumar May 18, 2022
d5d65ca
Update postgres image version to 12 in github action test workflow
hramezani May 20, 2022
8b47267
Revert "build: explicit the build system"
hramezani May 17, 2022
32694b1
Add register model using Django settings (#368)
2ykwang May 23, 2022
340a01d
Replace importlib with pkg_resources with.
hramezani May 23, 2022
46abfbd
Use Python3.7 for building the doc
hramezani May 23, 2022
ba19a8c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 23, 2022
bcd0d43
Add set_actor context manager (#262)
aleh-rymasheuski May 24, 2022
1e7d320
Add an index to the timestamp column (#364)
gwax May 31, 2022
d9b0d76
[tests] Check cases when reverse related field DoesNotExist. (#252)
rrauenza May 31, 2022
957680e
Fix n+1 query problem (#381)
2ykwang May 31, 2022
dd89c3c
Auditlog admin use list_select_related (#382)
2ykwang May 31, 2022
128555f
Add date based auditlog filter for auditlogflush command (#365)
gwax May 31, 2022
2e9466d
Change auditlogflush management command before_date query filter to a…
hramezani Jun 8, 2022
10c4718
Add logic to track changes to m2m fields (#309)
aleh-rymasheuski Jun 8, 2022
be973ca
Add pyupgrade to pre-commit-config (#385)
hramezani Jun 15, 2022
11dceb8
Add flake8 to pre-commit config (#387)
hramezani Jun 18, 2022
d928ff7
Return default value None if attribute choices doesn't exist
viktor2097 Jun 24, 2022
4f4699b
Prepare release 2.1.0
hramezani Jun 27, 2022
fd35c61
Silence an expected RuntimeWarning
aleh-rymasheuski May 24, 2022
5df31ea
Fix env list in tox.ini
aleh-rymasheuski Jun 7, 2022
309eef5
Allow running tox environments in parallel
aleh-rymasheuski Jun 28, 2022
b5edd50
Remove double underscores from tests name
hramezani Jun 28, 2022
7771075
Remove South compatibility codes
hramezani Jun 28, 2022
6b60d04
Fix documentation problem in usage.rst
hramezani Jun 28, 2022
121fe99
Simplify is_authenticated check
aleh-rymasheuski Jun 28, 2022
68c7f44
Make checks for empty collections more pythonic
aleh-rymasheuski Jun 28, 2022
2ac014b
Remove a redundant exception handler
aleh-rymasheuski Jun 28, 2022
d7dd32a
Switch MIDDLEWARE from a tuple to a list
aleh-rymasheuski Jun 28, 2022
ed3ce76
Remove a redundant comment
aleh-rymasheuski Jun 28, 2022
7861dae
Show field values before deletion in the admin
aleh-rymasheuski Jun 29, 2022
95929cd
Add assertions for msg_short
aleh-rymasheuski Jun 29, 2022
93907b7
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 4, 2022
3e04444
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 11, 2022
2f914c1
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 25, 2022
f68af30
Pin python-dateutil>=2.7.0 (#401)
aleh-rymasheuski Jul 27, 2022
68cde8f
Prepare release 2.1.1
hramezani Jul 27, 2022
a24b79a
Display timestamps in server timezone (#404)
aleh-rymasheuski Aug 1, 2022
4ed056b
[pre-commit.ci] pre-commit autoupdate (#405)
pre-commit-ci[bot] Aug 1, 2022
1cd7d98
Confirm Django 4.1 support (#406)
hramezani Aug 3, 2022
830152f
Fix code block in usage.rst
hramezani Aug 4, 2022
eb5e873
Add django-upgrade to pre-commit-config.yaml (#411)
hramezani Aug 8, 2022
a00d2c2
[pre-commit.ci] pre-commit autoupdate (#413)
pre-commit-ci[bot] Aug 8, 2022
c13d6ec
[pre-commit.ci] pre-commit autoupdate (#416)
pre-commit-ci[bot] Aug 15, 2022
18868aa
Handle port in `remote_addr`
hramezani Aug 16, 2022
174605d
docs(readme): update the release section (#351)
Linkid Aug 17, 2022
57423fc
Add required Python and Django version to setup.py (#419)
hramezani Aug 18, 2022
777bd53
Add serialized object field (#412)
sum-rock Aug 21, 2022
527f870
[pre-commit.ci] pre-commit autoupdate (#422)
pre-commit-ci[bot] Aug 29, 2022
93602bd
[pre-commit.ci] pre-commit autoupdate (#423)
pre-commit-ci[bot] Sep 5, 2022
acada9e
[pre-commit.ci] pre-commit autoupdate (#425)
pre-commit-ci[bot] Sep 12, 2022
fb90112
[pre-commit.ci] pre-commit autoupdate (#430)
pre-commit-ci[bot] Sep 19, 2022
d74c118
Added verbose field name in admin (#428)
rptmat57 Sep 20, 2022
a56d0e6
added fix for OneToOneRel error happening in case of Polymorphic mode…
rpsatorugit Sep 21, 2022
0f57525
Support search by custom USERNAME_FIELD (#432)
aleh-rymasheuski Sep 21, 2022
993cd84
[pre-commit.ci] pre-commit autoupdate (#435)
pre-commit-ci[bot] Sep 26, 2022
487b8ab
Remove unnecessary code in `created` method. (#438)
2ykwang Oct 5, 2022
c04f535
[pre-commit.ci] pre-commit autoupdate (#440)
pre-commit-ci[bot] Oct 10, 2022
90ce363
[pre-commit.ci] pre-commit autoupdate (#442)
pre-commit-ci[bot] Oct 17, 2022
aa6d977
Update pyupgrade and django-upgrade pre-commit hooks
hramezani Nov 1, 2022
8fe776a
Option to disable logging on raw save and via context manager (#446)
robinharms Nov 4, 2022
f71699a
Added ACCESS action and enabled logging of object accesses (#436)
simonkern Nov 7, 2022
36eaaaa
Confirm Python 3.11 support (#447)
hramezani Nov 7, 2022
2b0bc9e
Replace the `django.utils.timezone.utc` by `datetime.timezone.utc` (#…
hramezani Nov 7, 2022
227b0d9
Prepare release 2.2.0 (#434)
hramezani Nov 7, 2022
a6ea91f
[pre-commit.ci] pre-commit autoupdate (#451)
pre-commit-ci[bot] Nov 14, 2022
96275d5
Add `serialize_data` setting (#452)
2ykwang Nov 15, 2022
1ba3bd9
Disallow changing or deleting log entries (#449)
aleh-rymasheuski Nov 21, 2022
e23b091
Replace `pkg_resources` with `importlib` solution (#450)
hramezani Nov 21, 2022
4cdc756
FIX: Parsing client IPv6 address when a proxy is involved (#457)
aqeelat Nov 22, 2022
b4dda75
update readme link (#460)
Arhell Nov 28, 2022
2a93c20
Prepare release 2.2.1 (#459)
hramezani Nov 28, 2022
1674aca
[pre-commit.ci] pre-commit autoupdate (#462)
pre-commit-ci[bot] Nov 28, 2022
bfaeeab
update docs folder link (#465)
Arhell Dec 1, 2022
caf5daa
[pre-commit.ci] pre-commit autoupdate (#466)
pre-commit-ci[bot] Dec 6, 2022
cd1ba3d
[pre-commit.ci] pre-commit autoupdate (#473)
pre-commit-ci[bot] Dec 13, 2022
27f57a5
Fix LogEntry.changes_dict() to return {} when json.loads() returns No…
tykling Dec 13, 2022
703e3e4
Complete translation with gettext_lazy (#474)
ZahraEbrahimi01 Dec 14, 2022
8e496aa
- using changes_dict to fix potential TypeError when changes are None…
rptmat57 Dec 15, 2022
971a4f4
- fixed unused import
rptmat57 Dec 15, 2022
a733cd0
feat: Make timestamp in LogEntry overwritable (#478)
aqeelat Dec 19, 2022
63c8882
[pre-commit.ci] pre-commit autoupdate (#482)
pre-commit-ci[bot] Dec 19, 2022
bc6d393
Added support for Correlation ID
aqeelat Dec 23, 2022
c65c38e
Adding Custom Pre- and Post- Log Hooks (#483)
aqeelat Dec 27, 2022
2a7fc23
Modify ``change`` field to be a json field. (#407)
sum-rock Dec 28, 2022
c649629
Change diff to evaluate PKs for FK relationships (#420)
sum-rock Dec 28, 2022
dff0dd0
[pre-commit.ci] pre-commit autoupdate (#485)
pre-commit-ci[bot] Dec 28, 2022
7f8edd5
Convert AUDITLOG_EXCLUDE_TRACKING_MODELS to tuple before concatenate …
aivarsk Dec 29, 2022
ffa6d34
Fix repr of a json field in field changes (#489)
CleitonDeLima Dec 30, 2022
b9a86df
raise AuditLogRegistrationError on invalid app in settings (#492)
Jan 3, 2023
f6b9e9f
Always call set_actor (#484)
Jan 4, 2023
7a7e2eb
Run django main tests on Python >= 3.10 (#499)
hramezani Jan 19, 2023
06ae048
Add ability to globally exclude fields by name on all models (#498)
darkpixel Jan 20, 2023
565a9bb
[pre-commit.ci] pre-commit autoupdate (#504)
pre-commit-ci[bot] Jan 31, 2023
3a90087
Add null=True to ci field (#506)
hramezani Feb 3, 2023
ec59180
[pre-commit.ci] pre-commit autoupdate (#507)
pre-commit-ci[bot] Feb 9, 2023
7aec22d
Add 2.2.2 changelog (#510)
hramezani Feb 10, 2023
fcb6c4c
Fix a bug in audit log admin page when `USE_TZ=False` (#511)
hramezani Feb 10, 2023
98fe8d4
Make M2M changes comply with JSONField properly (#514)
josefdlange Feb 15, 2023
0cb3eb2
[pre-commit.ci] pre-commit autoupdate (#516)
pre-commit-ci[bot] Feb 20, 2023
818c8ca
Fix GitHub actions deprecations (#520)
aleh-rymasheuski Apr 1, 2023
fa955cd
[pre-commit.ci] pre-commit autoupdate (#521)
pre-commit-ci[bot] Apr 4, 2023
cd0d3ea
Audit changes to FK fields when saved using *_id naming. (#525)
barqshasbite May 8, 2023
59b5090
[pre-commit.ci] pre-commit autoupdate (#523)
pre-commit-ci[bot] May 8, 2023
bfb3a44
[pre-commit.ci] pre-commit autoupdate (#527)
pre-commit-ci[bot] May 9, 2023
0d9fb8d
fixed getting field's verbose_name (#508)
AllYouZombies May 17, 2023
4559146
Confirm Django 4.2 support (#529)
hramezani May 25, 2023
7f2a3e3
Fix unnecessary log when adding already existed m2m record (#535)
firtk Jun 21, 2023
0343846
[pre-commit.ci] pre-commit autoupdate (#534)
pre-commit-ci[bot] Jun 24, 2023
8f7dd32
Drop Django 4 support (#540)
hramezani Jul 3, 2023
875c6b7
[pre-commit.ci] pre-commit autoupdate (#541)
pre-commit-ci[bot] Jul 3, 2023
9bcc511
Fix a bug in `serialized_data` with F expressions (#544)
hramezani Jul 13, 2023
0604739
[pre-commit.ci] pre-commit autoupdate (#543)
pre-commit-ci[bot] Jul 13, 2023
2c595f1
Drop support for Python 3.7 (#546)
hramezani Jul 13, 2023
3dc4f1a
[pre-commit.ci] pre-commit autoupdate (#547)
pre-commit-ci[bot] Jul 17, 2023
f2591e4
feat: collect all models including auto created ones and excluding no…
Aug 9, 2023
134ef73
feat: give users the option to run the json migration asyncly (#495)
Aug 13, 2023
96a8ded
chore: upgrade github action versions (#553)
Aug 13, 2023
699d838
[pre-commit.ci] pre-commit autoupdate (#554)
pre-commit-ci[bot] Aug 22, 2023
fb1ae7a
Set history delete_related to False by default (#557)
aleh-rymasheuski Aug 24, 2023
c527868
Allow cascade deletion of auditlog entries (#556)
aleh-rymasheuski Aug 27, 2023
9f1a09b
Prepare for 3.0.0 beta release (#555)
Aug 29, 2023
858034b
pass instance_old to post_log.send (#558)
ilius Aug 30, 2023
af31261
fix: only fire the post_log signal when the log is created or when th…
Sep 7, 2023
ac737fd
Stop deleting log entries in log_create (#559)
aleh-rymasheuski Sep 11, 2023
991d47b
[pre-commit.ci] pre-commit autoupdate (#562)
pre-commit-ci[bot] Sep 11, 2023
720ab27
chore: add a check arg to the migration command (#563)
Sep 13, 2023
459f4b1
[pre-commit.ci] pre-commit autoupdate (#564)
pre-commit-ci[bot] Sep 18, 2023
ccc59e8
fix: don't set the correlation_id if the `AUDITLOG_CID_GETTER` is `No…
Sep 20, 2023
e699e7d
Update postgres to 13 (#568)
hramezani Sep 26, 2023
2ebaf40
Update pre-commit repos (#569)
hramezani Sep 26, 2023
d4ae5cc
fix: change verbose_name in changes_text migration (#571)
Oct 5, 2023
e15a610
Prepare release 3.0.0-beta.2 (#573)
hramezani Oct 5, 2023
6b7f4a7
[pre-commit.ci] pre-commit autoupdate (#574)
pre-commit-ci[bot] Oct 24, 2023
2bf675f
pip install . during RTD build (#578)
hugovk Oct 27, 2023
40ff8ae
[pre-commit.ci] pre-commit autoupdate (#579)
pre-commit-ci[bot] Nov 2, 2023
a034588
Confirm Python 3.12 support (#572)
jgillard Nov 2, 2023
9e98716
use contextvar instead of threadlocal (#581)
hamedsh Nov 6, 2023
5072f5d
Prepare release 3.0.0-beta.3 (#587)
hramezani Nov 14, 2023
c581a6e
[pre-commit.ci] pre-commit autoupdate (#588)
pre-commit-ci[bot] Nov 20, 2023
140719e
Conditionally disable / enable logging (#590)
errrken Dec 7, 2023
dbb50e4
Handle ObjectDoesNotExist in evaluation of repr (#592)
aleh-rymasheuski Dec 11, 2023
452f35e
[pre-commit.ci] pre-commit autoupdate (#594)
pre-commit-ci[bot] Dec 11, 2023
91b6f2e
[pre-commit.ci] pre-commit autoupdate (#595)
pre-commit-ci[bot] Dec 19, 2023
5523b50
[pre-commit.ci] pre-commit autoupdate (#597)
pre-commit-ci[bot] Dec 28, 2023
387b0ce
Confrim Django 5.0 and drop django 4.1 (#598)
hramezani Dec 29, 2023
1ce39c0
Prepare release 3.0.0-beta.4 (#599)
hramezani Jan 3, 2024
4473477
[pre-commit.ci] pre-commit autoupdate (#601)
pre-commit-ci[bot] Jan 9, 2024
f3238c9
feat: include `LogEntry` instance in `post_log` signal (#605)
ppmathis Feb 8, 2024
b9bf01b
[pre-commit.ci] pre-commit autoupdate (#604)
pre-commit-ci[bot] Feb 10, 2024
d78f813
[pre-commit.ci] pre-commit autoupdate (#608)
pre-commit-ci[bot] Feb 13, 2024
e6fc810
fix: avoid exception in changes_display_dict when model is missing (#…
ppmathis Feb 13, 2024
ac720cd
[pre-commit.ci] pre-commit autoupdate (#610)
pre-commit-ci[bot] Feb 19, 2024
156d655
[pre-commit.ci] pre-commit autoupdate (#616)
pre-commit-ci[bot] Mar 18, 2024
5289482
Keep GitHub Actions up to date with GitHub's Dependabot (#618)
cclauss Mar 20, 2024
2b03d25
Bump the github-actions group with 4 updates (#619)
dependabot[bot] Mar 20, 2024
b2aff7e
Correcting a typo in usage.rst (#615)
plmrn Mar 20, 2024
5e2daa4
[pre-commit.ci] pre-commit autoupdate (#621)
pre-commit-ci[bot] Mar 25, 2024
a0ae594
Disable logging remote IP address (#620)
Nathan-Cohen Mar 31, 2024
2f949dd
Add note about V3 to readme (#626)
hramezani Apr 7, 2024
a93d9ef
Fix serialize __proxy__ objects before logging (#624)
Nathan-Cohen Apr 8, 2024
7b03594
Fixed manuall logging when model is not registered (#627)
hramezani Apr 12, 2024
ceae2f9
Prepare release 3.0.0 (#629)
hramezani Apr 12, 2024
b768dc7
[pre-commit.ci] pre-commit autoupdate (#631)
pre-commit-ci[bot] Apr 15, 2024
1569051
[pre-commit.ci] pre-commit autoupdate (#637)
pre-commit-ci[bot] Apr 29, 2024
a652eeb
Fixed problem when setting `django.db.models.functions.Now()` in `Dat…
hramezani Apr 29, 2024
ba2c2e3
[pre-commit.ci] pre-commit autoupdate (#642)
pre-commit-ci[bot] May 13, 2024
8af8011
Fixed a problem when setting `Value(None)` in `JSONField` (#646)
hramezani May 27, 2024
d412b2b
Update postgres to 14 (#649)
hramezani May 27, 2024
92805e2
[pre-commit.ci] pre-commit autoupdate (#651)
pre-commit-ci[bot] Jun 11, 2024
2c0bd0f
Use `attname` to get pk value (#650)
evanandrews-xrd Jun 11, 2024
5bb701d
Sync django query and postgres query (#653)
GreatBahram Jun 12, 2024
5759020
[pre-commit.ci] pre-commit autoupdate (#654)
pre-commit-ci[bot] Jul 2, 2024
2958f58
[pre-commit.ci] pre-commit autoupdate (#657)
pre-commit-ci[bot] Jul 23, 2024
07a3a83
update docs (#662)
mohsiniscoding Aug 1, 2024
22dcbc4
Added --no-color args in test migration (#670)
CleitonDeLima Oct 1, 2024
4c3ee0b
Added remote port (#671)
CleitonDeLima Oct 7, 2024
a53a6fa
Drop Python 3.8 support (#678)
hramezani Oct 17, 2024
0634357
Confirm Django 5.1 support and drop Django 3.2 support. (#677)
hramezani Oct 17, 2024
512cd28
Update pre-commit (#679)
hramezani Oct 17, 2024
b1ecc8f
feat: Add truncate option to flush command (#681)
aabharya Oct 21, 2024
938e644
[pre-commit.ci] pre-commit autoupdate (#663)
pre-commit-ci[bot] Oct 29, 2024
d4f99c2
Add AUDITLOG_TRUNCATE_CHANGES_DISPLAY and AUDITLOG_TRUNCATE_LIMIT (#684)
hoangquochung1110 Nov 4, 2024
5621777
fix: use sender for m2m signal dispatch connection (#686)
cdubz Nov 12, 2024
8150d35
Bump codecov/codecov-action from 4 to 5 in the github-actions group (…
dependabot[bot] Nov 18, 2024
925f0db
Add date_hierarchy on timestamp to admin view (#687)
hho6643 Nov 19, 2024
6e51997
[pre-commit.ci] pre-commit autoupdate (#690)
pre-commit-ci[bot] Dec 3, 2024
a27c045
[pre-commit.ci] pre-commit autoupdate (#692)
pre-commit-ci[bot] Jan 22, 2025
3e540bf
Add Python 3.13 support (#697)
hramezani Jan 29, 2025
602c760
add actor email (#641)
hamedsh Jan 30, 2025
fb3fac5
[pre-commit.ci] pre-commit autoupdate (#698)
pre-commit-ci[bot] Feb 19, 2025
c4907bc
Add ability to globally mask fields by name on all models. (#702)
AMP999 Feb 24, 2025
856ee0a
Fix changelog (#703)
hramezani Feb 26, 2025
de650b0
[pre-commit.ci] pre-commit autoupdate (#704)
pre-commit-ci[bot] Mar 10, 2025
939dd9b
Use recommended manager (#705)
sebastianmanger Mar 11, 2025
4c1d573
Fix IntegrityError when cloning objects with pk=None (#664) (#707)
kubajecminek Mar 19, 2025
6414b7a
Let CI also check for missing migrations (#706)
sebastianmanger Mar 19, 2025
6d7e8c7
[pre-commit.ci] pre-commit autoupdate (#708)
pre-commit-ci[bot] Apr 7, 2025
cbcaff3
Prepare release 3.1.0 (#714)
jayeff Apr 15, 2025
df185e3
CI: Add required pkginfo to release workflow (#715)
jayeff Apr 16, 2025
d1e7566
Prepare release 3.1.1 (#716)
hramezani Apr 17, 2025
3f7f005
Pin libraries to fix release (#718)
jayeff Apr 26, 2025
ecdefde
improve actor_email assigment; the previous was not intuitive enough …
GreatBahram Apr 30, 2025
b640df6
new setting: STORE_JSON_CHANGES that intelligently store JSON (#719)
The-Alchemist Apr 30, 2025
3a58e0a
Fix `get_field_value` field default value handling for Django 6.0 com…
2ykwang Jun 9, 2025
af78976
Add support for custom masking functions (#725)
2ykwang Jun 9, 2025
637e04c
Update pre-commit repos (#728)
hramezani Jun 23, 2025
6184ec8
Prepare release 3.2.0 (#729)
hramezani Jun 26, 2025
8fe7393
Add support for Django 5.2 (#730)
mahdirahimi1999 Jun 26, 2025
138e4fc
added fixes for updates and deletes if AUDITLOG_STORE_JSON_CHANGES is…
The-Alchemist Jul 3, 2025
ca5f0ae
Prepare release 3.2.1 (#733)
hramezani Jul 3, 2025
0eff3e8
Use canonical timezone name for Buenos Aires (#736)
EdwardBetts Jul 11, 2025
d4d9f28
added fixes for changes_display_dict when AUDITLOG_STORE_JSON_CHANGES…
The-Alchemist Jul 22, 2025
9ef8cf2
Add audit log history view to Django Admin (#743)
2ykwang Aug 5, 2025
8003b06
Extend CI and local test coverage to MySQL and SQLite (#744)
2ykwang Aug 17, 2025
a7c07a4
Bump actions/checkout from 4 to 5 in the github-actions group (#752)
dependabot[bot] Aug 25, 2025
5379e1e
[pre-commit.ci] pre-commit autoupdate (#753)
pre-commit-ci[bot] Sep 1, 2025
572aeeb
Bump actions/setup-python from 5 to 6 in the github-actions group (#754)
dependabot[bot] Sep 8, 2025
4de16fb
Fix Expression test compatibility for Django 6.0+ (#759)
2ykwang Sep 24, 2025
65ebec6
Add I18N Support (#762)
2ykwang Sep 30, 2025
3051d23
Fix None type mismatch in change detection (#763)
2ykwang Oct 1, 2025
d87b929
Prepare release 3.3.0 (#756)
2ykwang Oct 2, 2025
85056b7
[pre-commit.ci] pre-commit autoupdate (#765)
pre-commit-ci[bot] Oct 7, 2025
74ba152
Fix copy-paste error in documentation heading (#760)
zc-mattcen Oct 10, 2025
bd03eb6
Amend setup configuration to include non-python package files (#769)
danbentley Oct 11, 2025
d417f30
Drop 'Python 3.9' support (#773)
2ykwang Oct 17, 2025
b1b6f9f
Add base manager setting to override default manager use (#747) (#766)
DrCuriosity Oct 18, 2025
8c9b7b4
[pre-commit.ci] pre-commit autoupdate (#774)
pre-commit-ci[bot] Oct 21, 2025
0e58a9d
Update mysql version in test docker-compose (#777)
hramezani Oct 31, 2025
7d13fd4
Add CustomLogEntry model support and update tests: (#764)
mostafaeftekharizadeh Nov 19, 2025
03336f9
Bump actions/checkout from 5 to 6 in the github-actions group (#783)
dependabot[bot] Nov 24, 2025
074e6aa
[pre-commit.ci] pre-commit autoupdate (#782)
pre-commit-ci[bot] Nov 24, 2025
d02ed6b
Make diffing more robust for polymorphic models (#784)
lukasgraf Nov 25, 2025
eb9eefd
Add new setting to control FK change representation (#779)
fabianallendorf Dec 2, 2025
6612503
Update CHANGELOG.md (#787)
2ykwang Dec 4, 2025
dc63671
Fix AttributeError when AUDITLOG_LOGENTRY_MODEL is not set (#788) (#789)
jgillard Dec 12, 2025
fb762a0
Bump actions/cache from 4 to 5 in the github-actions group (#794)
dependabot[bot] Dec 16, 2025
aedb6ea
Update CHANGELOG.md (#791)
2ykwang Dec 18, 2025
ede4d10
[pre-commit.ci] pre-commit autoupdate (#790)
pre-commit-ci[bot] Jan 7, 2026
198c060
[pre-commit.ci] pre-commit autoupdate (#799)
pre-commit-ci[bot] Jan 19, 2026
6d170da
Add support for m2m changes in AbstractLogEntry.changes_str (#798)
marco-thirona Jan 29, 2026
3f255a0
Fix typo in usage.rst regarding field exclusion (#801)
cxong Feb 5, 2026
4154560
[pre-commit.ci] pre-commit autoupdate (#806)
pre-commit-ci[bot] Feb 24, 2026
dfd5b79
[pre-commit.ci] pre-commit autoupdate (#807)
pre-commit-ci[bot] Mar 4, 2026
0e3a2ec
[pre-commit.ci] pre-commit autoupdate (#808)
pre-commit-ci[bot] Mar 10, 2026
c354c7f
[pre-commit.ci] pre-commit autoupdate (#810)
pre-commit-ci[bot] Mar 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/actions/setup-python-deps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Setup Python and Dependencies'
description: 'Common setup steps for Python and pip dependencies'

inputs:
python-version:
description: 'Python version to setup'
required: true
cache-key-prefix:
description: 'Prefix for pip cache key'
required: true

runs:
using: 'composite'
steps:
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ inputs.cache-key-prefix }}-${{ inputs.python-version }}-${{ hashFiles('**/pyproject.toml') }}

- name: Install Python dependencies
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Keep GitHub Actions up to date with GitHub's Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
version: 2
updates:
- package-ecosystem: github-actions
directory: /
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: weekly
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release

on:
push:
tags:
- '*'

jobs:
build:
if: github.repository == 'jazzband/django-auditlog'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'

- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT

- name: Cache
uses: actions/cache@v5
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: release-${{ hashFiles('**/setup.py') }}
restore-keys: |
release-

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools==75.6.0 twine==6.0.1 wheel pkginfo

- name: Build package
run: |
python setup.py --version
python setup.py sdist --format=gztar bdist_wheel
twine check dist/*

- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: jazzband
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
repository-url: https://jazzband.co/projects/django-auditlog/upload
127 changes: 127 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Test

on: [push, pull_request]

jobs:
test-sqlite:
name: SQLite • Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6

- name: Setup Python and dependencies
uses: ./.github/actions/setup-python-deps
with:
python-version: ${{ matrix.python-version }}
cache-key-prefix: sqlite3

- name: Run tests
env:
TEST_DB_BACKEND: sqlite3
run: tox -v

- name: Upload coverage
uses: codecov/codecov-action@v5
with:
name: SQLite • Python ${{ matrix.python-version }}

test-postgres:
name: PostgreSQL • Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: auditlog
ports:
- 5432/tcp
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v6

- name: Setup Python and dependencies
uses: ./.github/actions/setup-python-deps
with:
python-version: ${{ matrix.python-version }}
cache-key-prefix: postgresql

- name: Run tests
env:
TEST_DB_BACKEND: postgresql
TEST_DB_HOST: localhost
TEST_DB_USER: postgres
TEST_DB_PASS: postgres
TEST_DB_NAME: auditlog
TEST_DB_PORT: ${{ job.services.postgres.ports[5432] }}

run: tox -v

- name: Upload coverage
uses: codecov/codecov-action@v5
with:
name: PostgreSQL • Python ${{ matrix.python-version }}

test-mysql:
name: MySQL • Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
services:
mysql:
image: mysql:8.4
env:
MYSQL_DATABASE: auditlog
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: mysql
ports:
- 3306/tcp
options: >-
--health-cmd="sh -c 'export MYSQL_PWD=\"$MYSQL_ROOT_PASSWORD\"; mysqladmin ping -h 127.0.0.1 --protocol=TCP -uroot --silent || exit 1'"
--health-interval=10s
--health-timeout=5s
--health-retries=20
steps:
- uses: actions/checkout@v6

- name: Install MySQL client libraries
run: |
sudo apt-get update
sudo apt-get install -y libmysqlclient-dev pkg-config mysql-client

- name: Setup Python and dependencies
uses: ./.github/actions/setup-python-deps
with:
python-version: ${{ matrix.python-version }}
cache-key-prefix: mysql

- name: Run tests
env:
TEST_DB_BACKEND: mysql
TEST_DB_HOST: 127.0.0.1
TEST_DB_USER: root
TEST_DB_PASS: mysql
TEST_DB_NAME: auditlog
TEST_DB_PORT: ${{ job.services.mysql.ports[3306] }}
run: tox -v

- name: Upload coverage
uses: codecov/codecov-action@v5
with:
name: MySQL • Python ${{ matrix.python-version }}
87 changes: 80 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,82 @@
*.db
*.egg-info
*.log
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.pot
*.pyc
.idea
.project
.pydevproject

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Sphinx documentation
docs/_build/

# pyenv
.python-version

# pipenv
Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

### JetBrains
.idea/
.vscode/
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
language_version: python3.10
args:
- "--target-version"
- "py310"
- repo: https://github.com/PyCQA/flake8
rev: "7.3.0"
hooks:
- id: flake8
args: ["--max-line-length", "110"]
- repo: https://github.com/PyCQA/isort
rev: 8.0.1
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.30.0
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
27 changes: 27 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/source/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

Loading