Commit graph

63 commits

Author SHA1 Message Date
Hasan Ramezani
6b60d04e44 Fix documentation problem in usage.rst 2022-06-28 19:19:09 +02:00
Hasan Ramezani
11dceb81b8
Add flake8 to pre-commit config (#387) 2022-06-18 20:50:25 +04:30
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
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
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
6f82d070a9 Change versionadded in masking fields documentation. 2022-05-09 13:40:31 +02:00
Hasan Ramezani
de0625b378 Drop Django 2.2 support. 2022-05-01 13:48:26 +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
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
Hasan Ramezani
2c9d7047c9 Remove Django 3.1 support. 2022-01-10 10:18:20 +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
6fe3220a28 build(python): remove python 3.6 support 2022-01-05 15:01:32 +01:00
Hasan Ramezani
e2913da1bb Replace MIDDLEWARE_CLASSES with MIDDLEWARE in docs. 2021-06-03 13:23:11 +02:00
Hasan Ramezani
da7b1441d0 Add Django 3.2 support. 2021-05-25 00:50:02 +02:00
Hasan Ramezani
ca5aa82714 Remove Django 3.0 support. 2021-05-25 00:50:02 +02:00
Blas Isaias Fernández
55a66fc73a dict.iteritems was removed from python 3 2021-05-24 11:26:11 +02:00
Hasan Ramezani
2e477ab04a
Remove Python 3.5 support. (#301) 2021-05-24 01:25:46 +02:00
Jannis Leidel
2c6bf286b4
Remove note about maintenance. 2021-04-26 10:07:06 +02: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
Jan-Jelle Kester
31418d54f2
Changes for Jazzband (#269)
* Update repository references to Jazzband
Issue #268

* Add Jazzband badge to README
Issue #268

* Add Jazzband contribution guideline
Issue #268
2020-10-23 12:16:27 +02:00
Jan-Jelle Kester
f4edfc0592 Management command improvements 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
c619b8c606 Support Django 3.1 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
3acab4322b Drop Python 2, support Django 3.0, update dependencies 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
ee8a700b1b Clean up project structure 2020-09-07 16:52:32 +02:00
Keith Bussell
e138ee8855 Bump version 2019-11-11 18:13:06 +01:00
Jan-Jelle Kester
70e22afc78
Bump version 2018-09-18 11:09:10 +02:00
Jan-Jelle Kester
eaa02e6f38 Version bump 2018-01-12 23:39:44 +01:00
Jan-Jelle Kester
f45fb55c81 Version bump 2017-11-18 15:48:00 +01:00
Ryan Castner
45760c6316 Fixes #93 - Add 'changes_display_dict' property to 'LogEntry' model to display diff in a more human readable format (#94)
Fixes #93 - Add 'changes_display_dict' property to 'LogEntry' model to display diff in a more human readable format

'changes_display_dict' currently handles fields with choices, long textfields and charfields, datefields, timefields, and datetimefields. Supports `django-multiselectfield` with choices and Postgres's ArrayField with choices.

Textfields and Charfields longer than 140 characters are truncated with an ellipsis appended.
Date, Time and DateTime fields are rendered according to `L10N`, or if turned off fall back on Django settings defaults for DATE_FORMAT, TIME_FORMAT and DATETIME_FORMAT.

A new kwarg was added to 'AuditlogModelRegistry' called 'mapping_fields'. The kwarg allows the user to map the fields in the model to a more human readable or intuitive name. If a field isn't mapped it will default to the `verbose_name` as defined on the model or the Django default `verbose_name`. Partial mapping is supported, all fields do not need to be mapped to use the feature.

* Add django-multiselectfield test dep

* Add psycopg2 test dep

* Add postgres testing database and router

* Add postgres support to travis builds

* Add support for multiple databases. LogEntry saves to same database of the model its associated to

* If any literal evals fail default to None

* Add support for Postgres ArrayField in changes_display_dict

* Revert to old travis image while they are fixing issues with it

* Update docs

* Add full test coverage
2017-09-13 10:57:47 -04:00
Jan-Jelle Kester
d97160f0c8 Version bump 2017-02-16 22:24:35 +01:00
Jan-Jelle Kester
6acab3809b Bump version to 0.4.2 2017-02-16 15:17:59 +01:00
Jan-Jelle Kester
12d8c4d84d Version bump and slight doc changes for 0.4.1 2016-12-27 11:08:12 +01:00
Jan-Jelle Kester
c08c3d65bb Release 0.4.0 2016-08-17 23:04:03 +02:00
Jan-Jelle Kester
b223712e36 Merge branch 'master' into flush-command 2016-08-02 17:13:38 +02:00
Jan-Jelle Kester
74c2032d05 Drop Django 1.7
Issue #60
2016-08-02 17:03:03 +02:00
Jan-Jelle Kester
182c3f69a6 Add management command for deleting all log entries
Issue #57
2016-07-27 18:24:04 +02:00
Jan-Jelle Kester
6888f4bae8 Bump version 2016-01-23 22:53:50 +01:00
Jan-Jelle Kester
2140cb03e9 Update docs, readme 2015-10-19 16:09:01 +02:00
Jan-Jelle Kester
f70e2b3d3f Bump version number 2015-10-07 22:49:32 +02:00
Jan-Jelle Kester
9b633828cc Bump version number 2015-07-29 23:53:29 +02:00
Jan-Jelle Kester
cfd6b35d6c Extend docs with many-to-many, manual logging 2015-07-22 01:16:58 +02:00
Jan-Jelle Kester
dab0342cf6 Merge branch 'master' into release-0.3.0
Conflicts:
	src/auditlog/diff.py
2015-07-22 01:06:32 +02:00
Jan-Jelle Kester
c40ae32955 Update documentation for new feature 2015-06-03 16:50:00 +02:00