Commit graph

487 commits

Author SHA1 Message Date
Alieh Rymašeŭski
23b80f96b5 Merge commit '1e7d320a93efda3f470641e9abefcb0e0733cd7a' 2022-06-13 14:29:07 +03:00
Alieh Rymašeŭski
fe1831bf21 Merge commit 'bcd0d43566f24a08839ac17e85864ad7b7ae8a90' 2022-06-13 14:26:54 +03:00
Alieh Rymašeŭski
4915969283 Merge commit 'ba19a8ca35894a9f4f36fe1efb6823ab0da910c6' 2022-06-13 14:01:50 +03: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
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
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
Alieh Rymašeŭski
817af66641 Support search by custom USERNAME_FIELD 2022-03-15 13:49:19 +03: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
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
Alieh Rymašeŭski
9976cc1cc6 Merge upstream master 2022-02-24 17:44:41 +03:00
François Magimel
106e775016 release: update the CHANGELOG date 2022-02-24 17:43:28 +03:00
Paul Backhouse
9135750c4c Apply default_auto_field to app config. 2022-02-24 17:43:28 +03: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
m.babapoor@parspooyesh.com
80004f3c64 Add actor username to search fields 2022-02-24 17:43:28 +03:00
m.babapoor@parspooyesh.com
9f1930b779 Add content type to resource field 2022-02-24 17:43:28 +03:00
Andreas Hasenkopf
ae60832717 Add a DB index to LogEntry's action field (#236)
For some applications the possibility to filter by the `action` field might be really interesting. However the lack of an index can lead to severe reduction of such queries.

The simplest solution: Let's a DB index on that field :)
2022-02-24 17:43:28 +03:00
François Magimel
53532fdadc build(README): replace http with https for the doc 2022-02-24 17:43:28 +03:00
François Magimel
c0342576f5 build(setup): add some project URLs
Those URLs can be useful:
- the doc link
- the source link
- the tracker link.
2022-02-24 17:43:28 +03:00
François Magimel
75ea114c68 Refactor changelog (#343) 2022-02-24 17:43:28 +03:00
Hasan Ramezani
8d6c6d4fb8 Update supported versions in testing matrix 2022-02-24 17:43:28 +03:00
François Magimel
645bb83c59 docs(conf): replace pkg_resources with importlib
The doc is build with python 3.8, which includes the `importlib` API to
get the package version. Its use is recommended by `setuptools-scm` for
the doc.
2022-02-24 17:43:28 +03:00
François Magimel
57ddb9693a docs: use the latest django LTS to build docs
The latest django LTS is the the 3.2 version.
2022-02-24 17:37:54 +03:00
Charles Chan
d4617f940b Fix #327 - Remove non ascii characters (apostrophe) 2022-02-24 17:37:54 +03:00
Keith Bussell
f1ae1c1b30 Update README to include updates to release strategy (#221)
Co-authored-by: François Magimel <magimel.francois@gmail.com>
2022-02-24 17:37:54 +03:00
jazzband-bot
8147ec1d5f Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CONDUCT.md' 2022-02-24 17:37:54 +03:00
Hasan Ramezani
03a2207408 Pin psycopg2-binary to 2.8.6 2022-02-24 17:37:47 +03:00
Alieh Rymašeŭski
2bf4f4af6f Remove the backport of mock 2022-02-24 11:36:47 +03:00