Commit graph

356 commits

Author SHA1 Message Date
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
François Magimel
a30c8bbfc0 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-01-20 09:48:08 +01:00
Hasan Ramezani
f516aae4a6 Add django-jsonfield-backport to docs/requirements.txt to fix docs build. 2022-01-19 22:45:42 +01:00
François Magimel
d631bcac34 build(README): replace http with https for the doc 2022-01-19 11:49:17 +01:00
François Magimel
7356044693 build(setup): add some project URLs
Those URLs can be useful:
- the doc link
- the source link
- the tracker link.
2022-01-19 11:49:17 +01:00
Hasan Ramezani
505ee8d054 Fix black error. 2022-01-12 10:10:52 +01:00
Paul Backhouse
ffd8bb1e85 Apply default_auto_field to app config. 2022-01-11 10:42:05 +01:00
François Magimel
f91e524168
Refactor changelog (#343) 2022-01-10 18:36:46 +01:00
Hasan Ramezani
edc03e30fa Add Django4.0 to test pipeline. 2022-01-10 10:18:20 +01:00
Hasan Ramezani
f003f3332a Update syntax to Python 3.7+ 2022-01-10 10:18:20 +01:00
Hasan Ramezani
2c9d7047c9 Remove Django 3.1 support. 2022-01-10 10:18:20 +01:00
Hasan Ramezani
4771fe7830 Add missed change log. 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
Hasan Ramezani
1d27bc3a04 Remove extra imports. 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
Basti
05c280575f replace ugettext with gettext for django4 2022-01-07 08:36:23 +01:00
m.babapoor@parspooyesh.com
33620c30a7 Add actor username to search fields 2022-01-06 16:53:51 +01:00
Charles Chan
c9fac5cfde Fix #327 - Remove non ascii characters (apostrophe) 2022-01-06 10:50:13 +01:00
m.babapoor@parspooyesh.com
194e1e4c93 Add content type to resource field 2022-01-05 21:04:42 +01:00
François Magimel
728fb0439e docs: use the latest django LTS to build docs
The latest django LTS is the the 3.2 version.
2022-01-05 15:01:32 +01:00
François Magimel
50beb70a19 ci(tox): remove hyphens in django version aliases
This will be more consistent with python version aliases
2022-01-05 15:01:32 +01:00
François Magimel
6fe3220a28 build(python): remove python 3.6 support 2022-01-05 15:01:32 +01:00
jazzband-bot
d5e192c285 Jazzband: Created local 'CODE_OF_CONDUCT.md' from remote 'CODE_OF_CONDUCT.md' 2022-01-04 11:27:52 +01:00
Andreas Hasenkopf
938431389f
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-01-04 10:06:45 +01:00
Keith Bussell
620d716513
Update README to include updates to release strategy (#221)
Co-authored-by: François Magimel <magimel.francois@gmail.com>
2022-01-04 09:34:39 +01:00
Hasan Ramezani
3dee9f1555 Pin psycopg2-binary to 2.8.6 2021-11-04 20:40:23 +01:00