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
Abdullah Alaqeel
a733cd0852
feat: Make timestamp in LogEntry overwritable ( #478 )
2022-12-19 08:43:29 +01:00
Thomas Steen Rasmussen
27f57a53ff
Fix LogEntry.changes_dict() to return {} when json.loads() returns None ( #472 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-12-13 21:35:31 +01:00
Abdullah Alaqeel
4cdc756791
FIX: Parsing client IPv6 address when a proxy is involved ( #457 )
2022-11-22 08:44:59 +01:00
Alieh Rymašeŭski
1ba3bd9d07
Disallow changing or deleting log entries ( #449 )
2022-11-21 16:26:23 +01:00
Hasan Ramezani
2b0bc9efa2
Replace the django.utils.timezone.utc by datetime.timezone.utc ( #448 )
...
Co-authored-by: Alieh Rymašeŭski <alieh.rymasheuski@gmail.com>
2022-11-07 14:26:51 +01:00
Simon Kern
f71699a9d0
Added ACCESS action and enabled logging of object accesses ( #436 )
2022-11-07 08:51:00 +01:00
Robin Harms Oredsson
8fe776ae45
Option to disable logging on raw save and via context manager ( #446 )
...
* Disable on raw save prototype
* Contextmanager to disable instead of just raw - so we can catch m2m relations too
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-11-04 09:12:06 +01:00
Youngkwang Yang
487b8ab5f4
Remove unnecessary code in created method. ( #438 )
2022-10-05 18:39:48 +02:00
Rahul Prasad
a56d0e6f78
added fix for OneToOneRel error happening in case of Polymorphic model ( #429 )
2022-09-21 08:53:10 +02:00
Mathieu Rampant
d74c118834
Added verbose field name in admin ( #428 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-09-20 22:07:41 +02:00
August Raack
777bd537e7
Add serialized object field ( #412 )
2022-08-21 21:45:50 +02:00
Hasan Ramezani
18868aaaed
Handle port in remote_addr
2022-08-17 13:37:22 +02:00
Alieh Rymašeŭski
a24b79af0c
Display timestamps in server timezone ( #404 )
2022-08-01 20:41:41 +02:00
Alieh Rymašeŭski
95929cd5b6
Add assertions for msg_short
2022-06-30 09:04:43 +02:00
Alieh Rymašeŭski
7861dae4f9
Show field values before deletion in the admin
2022-06-30 09:04:43 +02:00
Hasan Ramezani
b5edd50f02
Remove double underscores from tests name
2022-06-28 19:19:09 +02:00
Alieh Rymašeŭski
fd35c61fda
Silence an expected RuntimeWarning
2022-06-28 19:08:36 +02:00
Viktor
d928ff7f77
Return default value None if attribute choices doesn't exist
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-06-27 09:08:19 +02:00
Hasan Ramezani
11dceb81b8
Add flake8 to pre-commit config ( #387 )
2022-06-18 20:50:25 +04:30
Hasan Ramezani
be973ca71f
Add pyupgrade to pre-commit-config ( #385 )
2022-06-15 15:48:08 +02:00
Alieh Rymašeŭski
10c47181bb
Add logic to track changes to m2m fields ( #309 )
2022-06-08 17:09:27 +02:00
Rich Rauenzahn
d9b0d76f3a
[tests] Check cases when reverse related field DoesNotExist. ( #252 )
2022-05-31 09:32:32 +02:00
Alieh Rymašeŭski
bcd0d43566
Add set_actor context manager ( #262 )
2022-05-24 09:33:54 +02:00
yeongkwang
32694b1324
Add register model using Django settings ( #368 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-05-23 10:02:22 +02:00
Saurabh Kumar
cdd9f40d84
Disable add button in admin ui
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-05-20 22:13:47 +02:00
Christian Barra
a93f53962a
Skip stringify if json ( #355 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-05-10 05:53:18 +02:00
Amin Alaee
bb5f99533e
Add mask_fields argument in register ( #310 )
...
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-03-10 14:17:50 +01:00
Hasan Ramezani
629d8e62c6
Replace assertTrue with assertEqual
2022-03-07 21:14:24 +01:00
Samuel Gonçalves
77ef852706
enable use of replica database ( #359 )
...
* enable use of replica database
When you use replica database the django-auditlog try to write in the same database where object was read (replica). But this is a read only database and crash the application.
This changes saves always in the default database.
If you want to save in multiple databases or in a special one use `DATABASE_ROUTERS` to configure it.
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
2022-03-07 14:22:08 +01:00
Hasan Ramezani
f003f3332a
Update syntax to Python 3.7+
2022-01-10 10:18:20 +01:00
Hasan Ramezani
4773a28cf4
Add Django main to test pipeline.
2022-01-10 10:18:20 +01:00
François Magimel
2e9668dc05
build: replace django-jsonfield with django-jsonfield-backport ( #339 )
...
The `django-jsonfield` module is not maintained anymore and raises some
errors with Django 4.0. So, as a recommendation in this package, and as
Django 2.2 is still maintained, `django-jsonfield-backport` will do the
job for the `JSONField` field.
Ref #43
Ref #334
2022-01-07 22:14:36 +01:00
Abdullah Elkady
54dc20e920
Support Django's save method update_fields kwarg ( #336 )
2022-01-07 14:23:37 +01:00
Hasan Ramezani
497c83fc83
Add isort and sort orders with isort.
2020-12-06 23:10:18 +01:00
Hasan Ramezani
f5bb5cb1a2
Add black and format files with black.
2020-12-06 23:10:18 +01:00
Jannis Leidel
910089597e
Initial GitHub Actions workflow. ( #283 )
...
* Initial GitHub Actions workflow.
* Use correct Postgres port.
* Fix duplicate.
* Use POSTGRES_HOST?
* Fixing postgres config?
* Pass test env vars with Tox.
* Work around issue with Django 3.1.
* Write coverage file.
* Add release workflow.
* Remove Travis config file.
* Update .github/workflows/test.yml
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Update auditlog_tests/tests.py
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Update .github/workflows/test.yml
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Update README.md
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Add Django 3.1 to tox config.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-11-26 10:45:20 +01:00
Jannis Leidel
50da34125c
Simplified travis config and added Jazzband release config. ( #281 )
...
* Simplified travis config and added Jazzband release config.
* Migrate to travis-ci.com.
* Split requirements to prevent env spoilage.
* Add docs requirements.
* Huh
* type
* Add psycopg2 doc requirements.
2020-11-25 22:15:14 +01:00
Jan-Jelle Kester
469fe362de
Code improvements
2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
3acab4322b
Drop Python 2, support Django 3.0, update dependencies
2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
ee8a700b1b
Clean up project structure
2020-09-07 16:52:32 +02:00