Commit graph

312 commits

Author SHA1 Message Date
Alieh Rymašeŭski
5d2bc88b2d Test LogEntry.actor field 2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
f647966210 Stop handling an impossible case
We check eliminate the case with zero log entries when checking that
obj.history.count() is exactly 1.
2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
2b44eebd50 Use assertEqual to assert equality 2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
6c0c83e7e5 Remove unused imports
Import of RelatedModel was left in place as it just lacks respective
tests.
2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
034ba57d93 Fix a misleading docstring 2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
13cad5b25a Explicitly unset the threadlocal 2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
9629f3f8d7 Move signal management to a context manager
This change allows setting the same signals when the request is not
present, i.e. in a celery task.
2021-06-24 12:55:22 +03:00
Alieh Rymašeŭski
3eb5d66c39 Use get_user_model 2021-06-24 12:55:22 +03:00
Hasan Ramezani
e2913da1bb Replace MIDDLEWARE_CLASSES with MIDDLEWARE in docs. 2021-06-03 13:23:11 +02:00
Hasan Ramezani
1a437f4e40 Add DEFAULT_AUTO_FIELD to test settings. 2021-05-25 00:50:02 +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
Panagiotis Simakis
457b04b448 Replace deprecated smart_text() with smart_str(). 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
Hasan Ramezani
d77803b3b4 Add Django supported versions to setup.py classifiers. 2020-12-07 21:27:17 +01:00
Hasan Ramezani
3e8d398c8e Remove Python 3.4 from setup.py classifiers. 2020-12-06 23:10:18 +01:00
Hasan Ramezani
6131430ff7 Change relative imports to absolute. 2020-12-06 23:10:18 +01:00
Hasan Ramezani
497c83fc83 Add isort and sort orders with isort. 2020-12-06 23:10:18 +01:00
Hasan Ramezani
f5bb5cb1a2 Add black and format files with black. 2020-12-06 23:10:18 +01:00
Hasan Ramezani
b700e40f65 Remove old django related codes. 2020-12-06 22:10:05 +01:00
Hasan Ramezani
f08b521b8b Add Supported Django versions badge to README. 2020-12-06 21:42:21 +01:00
Hasan Ramezani
e9cfdb2e48 Add Python 3.9 support. 2020-12-06 21:42:21 +01:00
Hasan Ramezani
793cb45960 Add Python 3.8 to setup.py classifiers. 2020-12-06 21:42:21 +01: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
565239180e Review improvements 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
7bb17fd5d2 Remove 'Django' requirement to satisfy Travis 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
33fa249071 Allow higher versions of python-dateutil
Fixes #162, closes #184
2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
346105dcf9 Use more generic .pk to get primary key instead of .id
Fixes #140
2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
f4edfc0592 Management command improvements 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
f14f6b34ee Remove stale code 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
469fe362de Code improvements 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
228c5949fb Use admin for test site 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
2010b49d06 Fix Django 3.0 field choices diff 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
4e7c640ba0 Bump copyright year 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
ee8a700b1b Clean up project structure 2020-09-07 16:52:32 +02:00
Jan-Jelle
c3b06045e0
Use Travis CI deployment v2 2019-12-16 11:21:35 +01:00
Jan-Jelle Kester
16daa13575 Supply PyPI credentials via environment variables (#222) 2019-12-03 15:36:40 +01:00
Keith Bussell
2aecef2760
Fix TOXENV variable name in deploy step (#217) 2019-11-12 20:42:27 +01:00
Keith Bussell
843495f669 Remove multi-db tests to make them more reliable
Fixes #213
2019-11-11 18:13:06 +01:00
Keith Bussell
e138ee8855 Bump version 2019-11-11 18:13:06 +01:00
Keith Bussell
7fa9636c18 Add Python 3.7 classifier 2019-11-11 18:13:06 +01:00
Keith Bussell
8b84777117 Ensure db affinity between model and LogEntry
This test case would fail occasionally--sometimes accessing `history`
would try pulling from "default" instead of the "postgres" database.

To fix this issue generally, this change:
https://github.com/jjkester/django-auditlog/pull/94/files#diff-10976dd6652a7dba50d5de998672e49bR60

should be propagated somehow into `AuditlogHistoryField`.
2019-11-11 18:13:06 +01:00
Keith Bussell
e0e6acb49c Use matrix to define TOXENV in Travis 2019-11-11 18:13:06 +01:00
Keith Bussell
c1d25a9ab5 Update testing for supported Django versions
Add support for Django 2.1 and 2.2, and drop support for < 1.11
2019-11-11 18:13:06 +01:00