Alieh Rymašeŭski
f3654f14b7
Merge commit '10c47181bb38ba49b0cb5927f5dab3fe4f8842e4'
2022-06-13 17:36:40 +03:00
Alieh Rymašeŭski
b2ec2c6b79
Merge commit '2e9466d1b49f97a5f89d6945aa4f78e1935bf760'
2022-06-13 16:14:08 +03:00
Alieh Rymašeŭski
4915969283
Merge commit 'ba19a8ca35894a9f4f36fe1efb6823ab0da910c6'
2022-06-13 14:01:50 +03:00
Alieh Rymašeŭski
10c47181bb
Add logic to track changes to m2m fields ( #309 )
2022-06-08 17:09:27 +02:00
George Leslie-Waksman
128555fa29
Add date based auditlog filter for auditlogflush command ( #365 )
2022-05-31 21:35:50 +04:30
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
Alieh Rymašeŭski
047fca9165
Merge upstream master
2022-05-20 12:58:34 +03: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
Hasan Ramezani
e39fab3b83
Remove default_app_config configuration
2022-05-02 14:48:58 +02:00
Hasan Ramezani
de0625b378
Drop Django 2.2 support.
2022-05-01 13:48:26 +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
86a323d2e6
Update syntax to Python 3.7+
2022-02-24 17:43:28 +03:00
François Magimel
1b88f8c11c
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-02-24 17:43:28 +03:00
Abdullah Elkady
d91496c439
Support Django's save method update_fields kwarg ( #336 )
2022-02-24 17:43:28 +03:00
Alieh Rymašeŭski
2bf4f4af6f
Remove the backport of mock
2022-02-24 11:36:47 +03: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
Alieh Rymašeŭski
cc90f32ada
Not define default_app_config for Django 3.2+
2021-06-30 11:33:09 +03:00
Alieh Rymašeŭski
48adbc5a1e
Add logic to track m2m relationships
2021-06-28 16:47:45 +03:00
Alieh Rymašeŭski
aa4f7a8108
Fix import order in tests
2021-06-25 13:23:42 +03:00
Alieh Rymašeŭski
d7a73e5cbf
Merge changes from upstream
2021-06-24 15:19:21 +03:00
Alieh Rymašeŭski
f12e8a74fc
Remove multiselectfield from tests
...
The upstream dropped this test long ago, and these tests now break on
Django 3.1+, so I don't want to invest into these tests too much.
2021-06-24 14:58:26 +03:00
Hasan Ramezani
cb99bcfbc4
Add DEFAULT_AUTO_FIELD to test settings.
2021-06-24 14:41:14 +03:00
Hasan Ramezani
94182f86e9
Replace old-style routing with new-style
2021-06-24 14:37:32 +03:00
Alieh Rymašeŭski
e404e82795
Apply CI changes from upstream
...
Notable changes include:
- removal of Travis in favor of GH Actions;
- configuration to get version from git and not from code.
2021-06-24 14:37:03 +03:00
Alieh Rymašeŭski
4232d685bd
Apply isort to the code base
2021-06-24 14:33:30 +03:00
Alieh Rymašeŭski
7801239387
Blacken the code
2021-06-24 13:04:48 +03:00
Alieh Rymašeŭski
5d2bc88b2d
Test LogEntry.actor field
2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
f647966210
Stop handling an impossible case
...
We check eliminate the case with zero log entries when checking that
obj.history.count() is exactly 1.
2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
2b44eebd50
Use assertEqual to assert equality
2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
6c0c83e7e5
Remove unused imports
...
Import of RelatedModel was left in place as it just lacks respective
tests.
2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
9629f3f8d7
Move signal management to a context manager
...
This change allows setting the same signals when the request is not
present, i.e. in a celery task.
2021-06-24 12:55:22 +03:00
Hasan Ramezani
1a437f4e40
Add DEFAULT_AUTO_FIELD to test settings.
2021-05-25 00:50:02 +02: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
Hasan Ramezani
b700e40f65
Remove old django related codes.
2020-12-06 22:10:05 +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
Alieh Rymašeŭski
cb1fefb793
Allow setting database parameters through env
2020-11-12 16:21:09 +03:00
Alieh Rymašeŭski
47a268eef9
Clean up project structure
...
Cherry-picking ee8a700b1b
2020-11-12 16:15:05 +03:00
Jan-Jelle Kester
469fe362de
Code improvements
2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
228c5949fb
Use admin for test site
2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
c619b8c606
Support Django 3.1
2020-09-07 16:52:32 +02:00