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
e39fab3b83
Remove default_app_config configuration
2022-05-02 14:48:58 +02:00
Hasan Ramezani
de0625b378
Drop Django 2.2 support.
2022-05-01 13:48:26 +02:00
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
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
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
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
Hasan Ramezani
f003f3332a
Update syntax to Python 3.7+
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
m.babapoor@parspooyesh.com
194e1e4c93
Add content type to resource field
2022-01-05 21:04:42 +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
Alieh Rymašeŭski
a0b5cda130
Add a UTC warning to the table with changes
...
When the server time is not UTC, the values of the timestamps may be
confusing to the user comparing timestamps between the auditlog and
elsewhere in the admin.
2021-10-15 14:21:54 +03:00
Alieh Rymašeŭski
d8702cf0f1
Fix deprecated import from rangefilter package
2021-06-30 15:55:20 +03:00
Alieh Rymašeŭski
cc90f32ada
Not define default_app_config for Django 3.2+
2021-06-30 11:33:09 +03:00
Alieh Rymašeŭski
48adbc5a1e
Add logic to track m2m relationships
2021-06-28 16:47:45 +03:00
Alieh Rymašeŭski
465bfded80
Refactor msg method from string to list logic
2021-06-28 16:29:03 +03:00
Alieh Rymašeŭski
bd68e2a619
Eliminate sender from dispatch_uid
...
Django performs a lookup using (sender, dispatch_uid) as the key,
which means that including sender in dispatch_uid is redundant.
2021-06-28 15:18:40 +03:00
Alieh Rymašeŭski
d7a73e5cbf
Merge changes from upstream
2021-06-24 15:19:21 +03:00
Alieh Rymašeŭski
1fc1e678c7
Replace list() with get_models()
2021-06-24 14:57:30 +03:00
Alieh Rymašeŭski
e404e82795
Apply CI changes from upstream
...
Notable changes include:
- removal of Travis in favor of GH Actions;
- configuration to get version from git and not from code.
2021-06-24 14:37:03 +03:00
Alieh Rymašeŭski
458f3e3766
Bump version to 0.7.3
2021-06-24 14:33:46 +03:00
Alieh Rymašeŭski
4232d685bd
Apply isort to the code base
2021-06-24 14:33:30 +03:00
Alieh Rymašeŭski
49d92b30fe
Replace relative imports with absolute
2021-06-24 14:31:23 +03:00
Alieh Rymašeŭski
7801239387
Blacken the code
2021-06-24 13:04:48 +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
Panagiotis Simakis
457b04b448
Replace deprecated smart_text() with smart_str().
2021-05-25 00:50:02 +02: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
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
Alieh Rymašeŭski
a0a0726982
Bump version to 0.7.2
2020-11-18 13:29:50 +03:00
Alieh Rymašeŭski
ff6349a89a
Order filter by field alphabetically
2020-11-18 13:29:29 +03:00
Alieh Rymašeŭski
8b97cc2acb
Bump version to 0.7.1
2020-11-12 18:04:00 +03:00
Alieh Rymašeŭski
5dcb069bb8
Add a short filter by actor__isnull
2020-11-12 18:03:27 +03:00