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
Alieh Rymašeŭski
ed3ce76762
Remove a redundant comment
...
`profile = "black"` in `isort` block suggests that this is an `isort`
profile compatible with `black`.
2022-06-28 19:20:02 +02:00
Alieh Rymašeŭski
d7dd32af92
Switch MIDDLEWARE from a tuple to a list
...
This is a recommended change starting with Django 1.9.
2022-06-28 19:20:02 +02:00
Alieh Rymašeŭski
2ac014baa5
Remove a redundant exception handler
...
It duplicates the handler for its parent class Exception.
2022-06-28 19:20:02 +02:00
Alieh Rymašeŭski
68c7f44f9c
Make checks for empty collections more pythonic
2022-06-28 19:20:02 +02:00
Alieh Rymašeŭski
121fe99cf5
Simplify is_authenticated check
...
This attribute is defined on request.user from Django 1.10 or a
comparably ancient version.
2022-06-28 19:20:02 +02:00
Hasan Ramezani
6b60d04e44
Fix documentation problem in usage.rst
2022-06-28 19:19:09 +02:00
Hasan Ramezani
7771075dc0
Remove South compatibility codes
2022-06-28 19:19:09 +02:00
Hasan Ramezani
b5edd50f02
Remove double underscores from tests name
2022-06-28 19:19:09 +02:00
Alieh Rymašeŭski
309eef5d2a
Allow running tox environments in parallel
2022-06-28 19:08:36 +02:00
Alieh Rymašeŭski
5df31ea6b5
Fix env list in tox.ini
2022-06-28 19:08:36 +02:00
Alieh Rymašeŭski
fd35c61fda
Silence an expected RuntimeWarning
2022-06-28 19:08:36 +02:00
Hasan Ramezani
4f4699bf6b
Prepare release 2.1.0
2022-06-27 23:36:15 +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
Hasan Ramezani
2e9466d1b4
Change auditlogflush management command before_date query filter to apply the filter only on date part of timestamp ( #384 )
2022-06-08 16:47:13 +02:00
George Leslie-Waksman
128555fa29
Add date based auditlog filter for auditlogflush command ( #365 )
2022-05-31 21:35:50 +04:30
Youngkwang Yang
dd89c3cefb
Auditlog admin use list_select_related ( #382 )
...
* Use list_select_related
* [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>
2022-05-31 15:50:34 +00:00
Youngkwang Yang
957680e239
Fix n+1 query problem ( #381 )
2022-05-31 20:05:43 +09:00
Rich Rauenzahn
d9b0d76f3a
[tests] Check cases when reverse related field DoesNotExist. ( #252 )
2022-05-31 09:32:32 +02:00
George Leslie-Waksman
1e7d320a93
Add an index to the timestamp column ( #364 )
...
Many queries, including the default ordering, for the LogEntry
model rely on the timestamp field. Adding an index will ensure
reasonable scalability for large audit logs.
2022-05-31 09:01:13 +02:00
Alieh Rymašeŭski
bcd0d43566
Add set_actor context manager ( #262 )
2022-05-24 09:33:54 +02:00
pre-commit-ci[bot]
ba19a8ca35
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-05-23 10:46:43 +02:00
Hasan Ramezani
46abfbdc2d
Use Python3.7 for building the doc
2022-05-23 10:46:43 +02:00
Hasan Ramezani
340a01d348
Replace importlib with pkg_resources with.
...
Readthedoc uses Python3.7
Revert a30c8bbfc0
2022-05-23 10:46:43 +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
Hasan Ramezani
8b47267a43
Revert "build: explicit the build system"
...
This reverts commit 7bc39e6d9d .
2022-05-23 09:25:25 +02:00
Hasan Ramezani
d5d65cae2a
Update postgres image version to 12 in github action test workflow
2022-05-20 22:14:29 +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
Hasan Ramezani
6f82d070a9
Change versionadded in masking fields documentation.
2022-05-09 13:40:31 +02:00
Hasan Ramezani
ea180c0065
Remove development note from README.md
2022-05-09 13:40:21 +02:00
Hasan Ramezani
d848c53d08
Prepare release of django-auditlog 2.0.0
2022-05-09 08:53:21 +02:00
Hasan Ramezani
e2d293730c
Update postgres image version in github action test workflow
2022-05-09 08:53:21 +02:00
Hasan Ramezani
6791253ae0
Fix typo in CHANGELOG.md
2022-05-09 08:53:21 +02:00
Hasan Ramezani
e39fab3b83
Remove default_app_config configuration
2022-05-02 14:48:58 +02:00
Hasan Ramezani
4c0bfabab2
Fix lint entry in tox.ini
2022-05-01 13:48:26 +02:00
Hasan Ramezani
de0625b378
Drop Django 2.2 support.
2022-05-01 13:48:26 +02:00
pre-commit-ci[bot]
8a5fa3f236
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 22.1.0 → 22.3.0](https://github.com/psf/black/compare/22.1.0...22.3.0 )
2022-04-05 15:04:09 +02:00
yeongkwang
8d8b6bad30
Fix small typo
2022-03-23 14:48:31 +04:30
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
dad4fb893b
Use pre-commit as lint command
2022-03-09 11:31:58 +01:00
Hasan Ramezani
0499dfa4c8
Add black and isort to .pre-commit-config.yaml
2022-03-09 11:31:58 +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
François Magimel
665217d32f
release: update the CHANGELOG date
2022-01-24 12:47:51 +01:00
François Magimel
7bc39e6d9d
build: explicit the build system
...
Setuptools is needed to build this package.
2022-01-20 09:48:08 +01:00