Commit graph

595 commits

Author SHA1 Message Date
Hasan Ramezani
18868aaaed Handle port in remote_addr 2022-08-17 13:37:22 +02:00
pre-commit-ci[bot]
c13d6ec88d
[pre-commit.ci] pre-commit autoupdate (#416)
updates:
- [github.com/adamchainz/django-upgrade: 1.7.0 → 1.8.0](https://github.com/adamchainz/django-upgrade/compare/1.7.0...1.8.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-15 20:03:15 +02:00
pre-commit-ci[bot]
a00d2c227f
[pre-commit.ci] pre-commit autoupdate (#413)
updates:
- [github.com/PyCQA/flake8: 5.0.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/5.0.2...5.0.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-08 20:24:17 +02:00
Hasan Ramezani
eb5e873082
Add django-upgrade to pre-commit-config.yaml (#411) 2022-08-08 11:53:03 +02:00
Hasan Ramezani
830152f0f4 Fix code block in usage.rst 2022-08-05 15:29:01 +03:00
Hasan Ramezani
1cd7d9839d
Confirm Django 4.1 support (#406) 2022-08-03 17:26:56 +02:00
pre-commit-ci[bot]
4ed056bc2f
[pre-commit.ci] pre-commit autoupdate (#405)
updates:
- [github.com/PyCQA/flake8: 4.0.1 → 5.0.2](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.2)
- [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-01 20:42:20 +02:00
Alieh Rymašeŭski
a24b79af0c
Display timestamps in server timezone (#404) 2022-08-01 20:41:41 +02:00
Hasan Ramezani
68cde8ffb9 Prepare release 2.1.1 2022-07-27 22:19:51 +02:00
Alieh Rymašeŭski
f68af3033d
Pin python-dateutil>=2.7.0 (#401) 2022-07-27 20:18:29 +02:00
pre-commit-ci[bot]
2f914c17ce [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.37.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.37.1...v2.37.2)
2022-07-25 23:13:06 +02:00
pre-commit-ci[bot]
3e044444c3 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1)
2022-07-11 20:13:43 +02:00
pre-commit-ci[bot]
93907b7a67 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)
2022-07-04 22:44:22 +03: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
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